Skip to content

Commit bbec2e0

Browse files
authored
Merge pull request #106 from LordOfPolls/master
Update FAQ to remove references to legacy code
2 parents 0c7df22 + c5d1cfa commit bbec2e0

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

docs/faq.rst

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ If you want your commands automatically registered, set ``sync_commands`` to ``T
2727
2828
from discord_slash import SlashCommand
2929
30-
slash = SlashCommand(client, auto_register=True)
30+
slash = SlashCommand(client, sync_commands=True)
3131
3232
Or, if you prefer to have more control, you can use :mod:`.utils.manage_commands`.
3333

@@ -44,17 +44,9 @@ For normal slash command, use :meth:`.client.SlashCommand.slash`, and for subcom
4444
How to delete slash commands?
4545
*****************************
4646

47-
You can enable auto deletion of unused commands by setting ``auto_delete`` to ``True`` at :class:`.client.SlashCommand`.
47+
If ``sync_commands`` is set to ``True``, commands will automatically be removed as needed.
4848

49-
.. code-block:: python
50-
51-
from discord_slash import SlashCommand
52-
slash = SlashCommand(auto_delete = True)
53-
54-
.. note::
55-
This will make a request for **every** single guild your bot is in.
56-
57-
Or you can do it manually by this methods:
49+
However, if you are not using ``sync_commands`` you can do it manually by this methods:
5850

5951
* Deleting a single command with :meth:`utils.manage_commands.remove_slash_command`
6052
* Deleting all commands using :meth:`utils.manage_commands.remove_all_commands`

0 commit comments

Comments
 (0)