You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, each argument has the description `No description`, but that can be changed by providing a `Tuple`of any type and a `Literal`.
44
+
By default, each argument and command has the description `No description`, but that can be changed by providing a docstring. Docstrings are supported as provided by [docstring-parser](https://pypi.org/project/docstring-parser/)—*at time of writing, that is [ReST](https://www.python.org/dev/peps/pep-0287/), [Google](https://google.github.io/styleguide/pyguide.html), and [Numpydoc](https://numpydoc.readthedocs.io/en/latest/format.html).*
# This command will automatically be called 'foo', and have the description
58
+
# "My command description here!", and the argument `member` will have the
59
+
# description "my description here".
55
60
await ctx.send(f"Hello, {member.mention}")
56
61
```
57
62
63
+
It's also possible to pass the command description through the decorator as follows, although that's not recommended (and will override any docstring provided description):
64
+
```python
65
+
@s.slash(description="My description!")
66
+
asyncdefcommand(ctx):
67
+
pass
68
+
```
69
+
58
70
## Advanced usage
59
71
The same usage applies for cogs, but a different function is used.
0 commit comments