Implement a least breaking approach to slash commands #39

Merged
Gnome-py merged 42 commits from 2.0 into 2.0 2021-09-18 23:28:11 +00:00
Showing only changes of commit a6d6472c79 - Show all commits

View File

@@ -146,11 +146,13 @@ class BotBase(GroupMixin):
def __init__(self,
command_prefix,
help_command=_default,
description=None,
description=None, *,
intents: discord.Intents,
message_commands: bool = True,
slash_commands: bool = False, **options
):
super().__init__(**options)
super().__init__(**options, intents=intents)
self.command_prefix = command_prefix
self.slash_commands = slash_commands
self.message_commands = message_commands