aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Mintz <[email protected]>2019-09-05 16:50:26 -0500
committerRapptz <[email protected]>2019-09-10 21:10:59 -0400
commit1dddb66a1ec5dd558551c685351c4f610999ea56 (patch)
tree23e6e6a7f80c95831142a813c06b57982f6dbea8
parent[tasks] Add support for passing an argument list of exceptions. (diff)
downloaddiscord.py-1dddb66a1ec5dd558551c685351c4f610999ea56.tar.xz
discord.py-1dddb66a1ec5dd558551c685351c4f610999ea56.zip
[commands] default Bot.owner_ids to a set
This appears to be a typo, as everywhere else, owner_ids is set to a set.
-rw-r--r--discord/ext/commands/bot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py
index 2f07a85f..0e83c3f7 100644
--- a/discord/ext/commands/bot.py
+++ b/discord/ext/commands/bot.py
@@ -108,7 +108,7 @@ class BotBase(GroupMixin):
self._help_command = None
self.description = inspect.cleandoc(description) if description else ''
self.owner_id = options.get('owner_id')
- self.owner_ids = options.get('owner_ids', {})
+ self.owner_ids = options.get('owner_ids', set())
if self.owner_id and self.owner_ids:
raise TypeError('Both owner_id and owner_ids are set.')