Skip to content

Commit

Permalink
Make command_prefix default to commands.when_mentioned
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeWithSwastik committed Aug 29, 2021
1 parent e61bf23 commit dcb2106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discord/ext/commands/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def __repr__(self):
_default = _DefaultRepr()

class BotBase(GroupMixin):
def __init__(self, command_prefix, help_command=_default, description=None, **options):
def __init__(self, command_prefix=when_mentioned, help_command=_default, description=None, **options):
super().__init__(**options)
self.command_prefix = command_prefix
self.extra_events: Dict[str, List[CoroFunc]] = {}
Expand Down

0 comments on commit dcb2106

Please sign in to comment.