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
Copy file name to clipboardExpand all lines: docs/faq.rst
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ Adding a slash command is a two part process.
21
21
22
22
Add a slash command on Discord
23
23
---------------------------------
24
-
If you want your commands automatically registered, set ``auto_register`` to ``True`` at :class:`.client.SlashCommand`.
24
+
If you want your commands automatically registered, set ``sync_commands`` to ``True`` at :class:`.client.SlashCommand`.
25
25
26
26
.. code-block:: python
27
27
@@ -117,7 +117,7 @@ Pretty much anything from the discord's commands extension doesn't work, also so
117
117
.. warning::
118
118
If you use something that might take a while, eg ``wait_for`` you'll run into two issues:
119
119
120
-
1. If you don't respond within 3 seconds (``ctx.response()``) discord invalidates the interaction.
120
+
1. If you don't respond within 3 seconds (``ctx.respond()``) discord invalidates the interaction.
121
121
2. The interaction only lasts for 15 minutes, so if you try and send something with the interaction (``ctx.send``) more than 15 mins after the command was ran it won't work.
122
122
123
123
As an alternative you can use ``ctx.channel.send`` but this relies on the the bot being in the guild, and the bot having send perms in that channel.
0 commit comments