Skip to content

Commit

Permalink
Merge pull request #84 from Snipy7374/typo
Browse files Browse the repository at this point in the history
fix: fix typos
  • Loading branch information
FallenDeity authored Aug 7, 2024
2 parents 05a8a96 + cbaac18 commit 6c7e9f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/creating-a-bot.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion docs/hybrid-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Expand Down

0 comments on commit 6c7e9f5

Please sign in to comment.