diff --git a/docs/creating-a-bot.md b/docs/creating-a-bot.md index b811e3a..b17b746 100644 --- a/docs/creating-a-bot.md +++ b/docs/creating-a-bot.md @@ -188,7 +188,7 @@ In most cases, you will be using the `commands.Bot` class. | Can be used to create a minimal bot. | Can be used to create a bot with more functionality. | | Not possible to add cogs. | Possible to add cogs. | | Not possible to make prefix commands. | Possible to make prefix commands. | -| Only possible to have 1 callback per event. | Possible to have multiple callbacks per even using `listen` decorators. | +| Only possible to have 1 callback per event. | Possible to have multiple callbacks per event using `listen` decorators. | !!! note "Note" A `discord.Client` instance allows for only 1 callback per event. This means that if you have 2 `on_message` callbacks, only 1 of them will be called. diff --git a/docs/hybrid-commands.md b/docs/hybrid-commands.md index 554b3b2..39f71a9 100644 --- a/docs/hybrid-commands.md +++ b/docs/hybrid-commands.md @@ -10,7 +10,7 @@ Hybrid commands are commands that can be used both as a slash command and as a r ## Creating a Hybrid Command -To create a hybrid command, you must use the `hybrid_command` decorator. This decorator takes an additional `name` and `description` parameter, which are used to register the slash command. In case `name` is not provided, the name of the function will be used. +To create a hybrid command, you must use the `hybrid_command` decorator. This decorator takes an additional `name` and `description` parameters, which are used to register the slash command. In case `name` is not provided, the name of the function will be used. There are two ways to document hybrid commands. You can either use the `app_commands.describe` decorator or docstrings. `discord.py` accepts multiple docstring formats, including [Google-style](https://google.github.io/styleguide/pyguide.html#383-functions-and-methods), [NumPy-style](https://numpydoc.readthedocs.io/en/stable/format.html#parameters), and [Sphinx-style](https://www.sphinx-doc.org/en/master/usage/domains/python.html#info-field-lists).