From c5d1cfaeea658626f8c491013905083c0842a9d8 Mon Sep 17 00:00:00 2001 From: LordOfPolls Date: Mon, 22 Feb 2021 12:26:03 +0000 Subject: [PATCH] Update FAQ to remove legacy references --- docs/faq.rst | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/docs/faq.rst b/docs/faq.rst index 6f50712f1..9ddaedd6c 100644 --- a/docs/faq.rst +++ b/docs/faq.rst @@ -27,7 +27,7 @@ If you want your commands automatically registered, set ``sync_commands`` to ``T from discord_slash import SlashCommand - slash = SlashCommand(client, auto_register=True) + slash = SlashCommand(client, sync_commands=True) Or, if you prefer to have more control, you can use :mod:`.utils.manage_commands`. @@ -44,17 +44,9 @@ For normal slash command, use :meth:`.client.SlashCommand.slash`, and for subcom How to delete slash commands? ***************************** -You can enable auto deletion of unused commands by setting ``auto_delete`` to ``True`` at :class:`.client.SlashCommand`. +If ``sync_commands`` is set to ``True``, commands will automatically be removed as needed. -.. code-block:: python - - from discord_slash import SlashCommand - slash = SlashCommand(auto_delete = True) - -.. note:: - This will make a request for **every** single guild your bot is in. - -Or you can do it manually by this methods: +However, if you are not using ``sync_commands`` you can do it manually by this methods: * Deleting a single command with :meth:`utils.manage_commands.remove_slash_command` * Deleting all commands using :meth:`utils.manage_commands.remove_all_commands`