Skip to content

Commit efeba22

Browse files
authored
Remove discord.Bot.debug_guild
Remove debug_guild as it is redundant to have next to debug_guilds and increases clutter.
1 parent 16f9bcb commit efeba22

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

discord/bot.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -687,9 +687,6 @@ def __init__(self, description=None, *args, **options):
687687
self.owner_id = options.get("owner_id")
688688
self.owner_ids = options.get("owner_ids", set())
689689

690-
self.debug_guild = options.pop(
691-
"debug_guild", None
692-
) # TODO: remove or reimplement
693690
self.debug_guilds = options.pop("debug_guilds", None)
694691

695692
if self.owner_id and self.owner_ids:
@@ -1086,17 +1083,10 @@ class Bot(BotBase, Client):
10861083
for the collection. You cannot set both ``owner_id`` and ``owner_ids``.
10871084
10881085
.. versionadded:: 1.3
1089-
debug_guild: Optional[:class:`int`]
1090-
Guild ID of a guild to use for testing commands. Prevents setting global commands
1091-
in favor of guild commands, which update instantly.
1092-
.. note::
1093-
1094-
The bot will not create any global commands if a debug_guild is passed.
1086+
10951087
debug_guilds: Optional[List[:class:`int`]]
10961088
Guild IDs of guilds to use for testing commands. This is similar to debug_guild.
1097-
.. note::
1098-
1099-
You cannot set both debug_guild and debug_guilds.
1089+
The bot will not create any global commands if a debug_guilds is passed.
11001090
"""
11011091

11021092
pass

0 commit comments

Comments
 (0)