Skip to content

Commit 77cc755

Browse files
committed
Fixed docs incorrect ref
1 parent e8bbb31 commit 77cc755

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/faq.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Adding a slash command is a two part process.
2121

2222
Add a slash command on Discord
2323
---------------------------------
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`.
2525

2626
.. code-block:: python
2727
@@ -117,7 +117,7 @@ Pretty much anything from the discord's commands extension doesn't work, also so
117117
.. warning::
118118
If you use something that might take a while, eg ``wait_for`` you'll run into two issues:
119119

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.
121121
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.
122122

123123
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

Comments
 (0)