Skip to content

Commit

Permalink
remove removed parameter documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
onerandomusername committed Oct 7, 2022
1 parent 5421d9f commit 9bcfd41
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 53 deletions.
18 changes: 0 additions & 18 deletions disnake/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,24 +304,6 @@ class Client:
.. versionadded:: 2.1
sync_commands: :class:`bool`
Whether to enable automatic synchronization of application commands in your code.
Defaults to ``True``, which means that commands in API are automatically synced
with the commands specified in your code.
.. versionadded:: 2.1
sync_commands_debug: :class:`bool`
Whether to always show sync debug logs (uses ``INFO`` log level if it's enabled, prints otherwise).
If disabled, uses the default ``DEBUG`` log level which isn't shown unless the log level is changed manually.
Useful for tracking the commands being registered in the API.
.. versionadded:: 2.1
.. versionchanged:: 2.4
Changes the log level of corresponding messages from ``DEBUG`` to ``INFO`` or ``print``\\s them,
instead of controlling whether they are enabled at all.
localization_provider: :class:`.LocalizationProtocol`
An implementation of :class:`.LocalizationProtocol` to use for localization of
application commands.
Expand Down
40 changes: 5 additions & 35 deletions disnake/ext/commands/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

from ._types import MaybeCoro
from .bot_base import PrefixType
from .flags import ApplicationCommandSyncFlags
from .help import HelpCommand


Expand Down Expand Up @@ -197,9 +198,7 @@ def __init__(
owner_ids: Optional[Set[int]] = None,
reload: bool = False,
case_insensitive: bool = False,
sync_commands: bool = True,
sync_commands_debug: bool = False,
sync_commands_on_cog_unload: bool = True,
command_sync: ApplicationCommandSyncFlags = ...,
test_guilds: Optional[Sequence[int]] = None,
asyncio_debug: bool = False,
loop: Optional[asyncio.AbstractEventLoop] = None,
Expand Down Expand Up @@ -248,9 +247,7 @@ def __init__(
owner_ids: Optional[Set[int]] = None,
reload: bool = False,
case_insensitive: bool = False,
sync_commands: bool = True,
sync_commands_debug: bool = False,
sync_commands_on_cog_unload: bool = True,
command_sync: ApplicationCommandSyncFlags = ...,
test_guilds: Optional[Sequence[int]] = None,
asyncio_debug: bool = False,
loop: Optional[asyncio.AbstractEventLoop] = None,
Expand Down Expand Up @@ -308,29 +305,6 @@ class InteractionBot(InteractionBotBase, disnake.Client):
.. versionadded:: 2.1
sync_commands: :class:`bool`
Whether to enable automatic synchronization of application commands in your code.
Defaults to ``True``, which means that commands in API are automatically synced
with the commands in your code.
.. versionadded:: 2.1
sync_commands_on_cog_unload: :class:`bool`
Whether to sync the application commands on cog unload / reload. Defaults to ``True``.
.. versionadded:: 2.1
sync_commands_debug: :class:`bool`
Whether to always show sync debug logs (uses ``INFO`` log level if it's enabled, prints otherwise).
If disabled, uses the default ``DEBUG`` log level which isn't shown unless the log level is changed manually.
Useful for tracking the commands being registered in the API.
Defaults to ``False``.
.. versionadded:: 2.1
.. versionchanged:: 2.4
Changes the log level of corresponding messages from ``DEBUG`` to ``INFO`` or ``print``\\s them,
instead of controlling whether they are enabled at all.
reload: :class:`bool`
Whether to enable automatic extension reloading on file modification for debugging.
Whenever you save an extension with reloading enabled the file will be automatically
Expand Down Expand Up @@ -368,9 +342,7 @@ def __init__(
owner_id: Optional[int] = None,
owner_ids: Optional[Set[int]] = None,
reload: bool = False,
sync_commands: bool = True,
sync_commands_debug: bool = False,
sync_commands_on_cog_unload: bool = True,
command_sync: ApplicationCommandSyncFlags = ...,
test_guilds: Optional[Sequence[int]] = None,
asyncio_debug: bool = False,
loop: Optional[asyncio.AbstractEventLoop] = None,
Expand Down Expand Up @@ -412,9 +384,7 @@ def __init__(
owner_id: Optional[int] = None,
owner_ids: Optional[Set[int]] = None,
reload: bool = False,
sync_commands: bool = True,
sync_commands_debug: bool = False,
sync_commands_on_cog_unload: bool = True,
command_sync: ApplicationCommandSyncFlags = ...,
test_guilds: Optional[Sequence[int]] = None,
asyncio_debug: bool = False,
loop: Optional[asyncio.AbstractEventLoop] = None,
Expand Down

0 comments on commit 9bcfd41

Please sign in to comment.