Skip to content

Commit

Permalink
docs: fix references to ApplicationCommandSyncFlags
Browse files Browse the repository at this point in the history
  • Loading branch information
onerandomusername committed Oct 18, 2022
1 parent 0215b47 commit 31dbe23
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion disnake/ext/commands/bot.py
Expand Up @@ -317,7 +317,7 @@ class InteractionBot(InteractionBotBase, disnake.Client):
.. versionadded:: 2.1
command_sync: :class:`ApplicationCommandSyncFlags`
command_sync: :class:`.ext.commands.ApplicationCommandSyncFlags`
The command sync flags that you want to enable for the session. This is a way of
controlling when and how application commands will be synced with the API.
If not given, automatic command synchronization is enabled.
Expand Down
10 changes: 5 additions & 5 deletions docs/ext/commands/slash_commands.rst
@@ -1,6 +1,6 @@
.. SPDX-License-Identifier: MIT
.. currentmodule:: disnake.ext.commands
.. currentmodule:: disnake

.. _ext_commands_slash_commands:

Expand Down Expand Up @@ -41,9 +41,9 @@ This code sample shows how to set the registration to be local:
For global registration, don't specify this parameter.

In order to configure specific properties about command sync, we have a configuration
class which may be passed to the Bot, :class:`.ApplicationCommandSyncFlags`.
class which may be passed to the Bot, :class:`~.ext.commands.ApplicationCommandSyncFlags`.

Setting :attr:`ApplicationCommandSyncFlags.sync_commands_debug` to ``True``, will print debug messages related to the
Setting :attr:`ApplicationCommandSyncFlags.sync_commands_debug <.ext.commands.ApplicationCommandSyncFlags.sync_commands_debug>` to ``True``, will print debug messages related to the
app command registration to the console, without having to change the log level of any loggers
This is useful if you want to figure out some registration details:

Expand All @@ -60,8 +60,8 @@ This is useful if you want to figure out some registration details:
command_sync=command_sync,
)
If you want to disable the automatic registration, set :attr:`ApplicationCommandSyncFlags.sync_commands`
to ``False``, or use the classmethod :meth:`none() <ApplicationCommandSyncFlags.none>`
If you want to disable the automatic registration, set :attr:`ApplicationCommandSyncFlags.sync_commands <.ext.commands.ApplicationCommandSyncFlags.sync_commands>`
to ``False``, or use the classmethod :meth:`none() <.ext.commands.ApplicationCommandSyncFlags.none>`

.. code-block:: python3
Expand Down

0 comments on commit 31dbe23

Please sign in to comment.