Skip to content

Commit af4a096

Browse files
authored
Merge pull request #627 from HyperGH/patch-2
Remove discord.Bot.debug_guild
2 parents 16f9bcb + 4cd2efb commit af4a096

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

discord/bot.py

Lines changed: 2 additions & 18 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:
@@ -702,12 +699,6 @@ def __init__(self, description=None, *args, **options):
702699
f"owner_ids must be a collection not {self.owner_ids.__class__!r}"
703700
)
704701

705-
if self.debug_guild:
706-
if self.debug_guilds is None:
707-
self.debug_guilds = [self.debug_guild]
708-
else:
709-
raise TypeError("Both debug_guild and debug_guilds are set.")
710-
711702
self._checks = []
712703
self._check_once = []
713704
self._before_invoke = None
@@ -1086,17 +1077,10 @@ class Bot(BotBase, Client):
10861077
for the collection. You cannot set both ``owner_id`` and ``owner_ids``.
10871078
10881079
.. 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.
1080+
10951081
debug_guilds: Optional[List[:class:`int`]]
10961082
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.
1083+
The bot will not create any global commands if a debug_guilds is passed.
11001084
"""
11011085

11021086
pass

0 commit comments

Comments
 (0)