Remove intents.default and make intents a required parameter

This commit is contained in:
Gnome
2021-08-31 20:48:31 +01:00
parent 773ad6f5bf
commit 6e41bd2219
24 changed files with 60 additions and 52 deletions

View File

@ -120,8 +120,8 @@ class _DefaultRepr:
_default = _DefaultRepr()
class BotBase(GroupMixin):
def __init__(self, command_prefix, help_command=_default, description=None, **options):
super().__init__(**options)
def __init__(self, command_prefix, help_command=_default, description=None, *, intents: discord.Intents, **options):
super().__init__(**options, intents=intents)
self.command_prefix = command_prefix
self.extra_events: Dict[str, List[CoroFunc]] = {}
self.__cogs: Dict[str, Cog] = {}