We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c709d91 commit 28be549Copy full SHA for 28be549
twitchio/ext/commands/core.py
@@ -262,6 +262,15 @@ def _get_signature(self) -> None:
262
263
self._signature = help_sig
264
265
+ @property
266
+ def parameters(self) -> MappingProxyType[str, inspect.Parameter]:
267
+ """Property returning a copy mapping of name to :class:`inspect.Parameter` pair, which are the parameters
268
+ of the callback of this command, minus ``self`` (if in a class) and ``ctx``.
269
+
270
+ Can be used to retrieve the name, annotation, and default value of command parameters.
271
+ """
272
+ return MappingProxyType(self._params)
273
274
@property
275
def signature(self) -> str | None:
276
"""Property returning an easily readable POSIX-like argument signature for the command.
0 commit comments