mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-09-21 03:27:42 +00:00
Fix various typos within the documentation
This commit is contained in:
@@ -1212,7 +1212,7 @@ This allows you to define a command as both slash and text command without writi
|
||||
both counterparts.
|
||||
|
||||
|
||||
In order to define a hybrid command, The command callback should be decorated with
|
||||
In order to define a hybrid command, the command callback should be decorated with
|
||||
:meth:`.Bot.hybrid_command` decorator.
|
||||
|
||||
.. code-block:: python3
|
||||
@@ -1264,11 +1264,11 @@ Apart from that, all other features such as converters, checks, autocomplete, fl
|
||||
are supported on hybrid commands. Note that due to a design constraint, decorators related to application commands
|
||||
such as :func:`discord.app_commands.autocomplete` should be placed below the :func:`~ext.commands.hybrid_command` decorator.
|
||||
|
||||
For convenience and ease in writing code, The :class:`~ext.commands.Context` class implements
|
||||
For convenience and ease in writing code, the :class:`~ext.commands.Context` class implements
|
||||
some behavioural changes for various methods and attributes:
|
||||
|
||||
- :attr:`.Context.interaction` can be used to retrieve the slash command interaction.
|
||||
- Since interaction can only be responded to once, The :meth:`.Context.send` automatically
|
||||
- Since interaction can only be responded to once, the :meth:`.Context.send` automatically
|
||||
determines whether to send an interaction response or a followup response.
|
||||
- :meth:`.Context.defer` defers the interaction response for slash commands but shows typing
|
||||
indicator for text commands.
|
||||
|
||||
@@ -10,7 +10,7 @@ There comes a time in the bot development when you want to extend the bot functi
|
||||
Primer
|
||||
--------
|
||||
|
||||
An extension at its core is a python file with an entry point called ``setup``. This setup function must be a Python coroutine. It takes a single parameter -- the :class:`~.commands.Bot` that loads the extension.
|
||||
An extension at its core is a Python file with an entry point called ``setup``. This setup function must be a Python coroutine. It takes a single parameter -- the :class:`~.commands.Bot` that loads the extension.
|
||||
|
||||
An example extension looks like this:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user