Browse Source

[commands] Fix lack of space in when_mentioned

pull/546/head
Rapptz 8 years ago
parent
commit
37681dd0ea
  1. 2
      discord/ext/commands/bot.py

2
discord/ext/commands/bot.py

@ -41,7 +41,7 @@ from .formatter import HelpFormatter
def when_mentioned(bot, msg):
"""A callable that implements a command prefix equivalent
to being mentioned, e.g. ``@bot ``."""
return [bot.user.mention, '<@!%s>' % bot.user.id]
return [bot.user.mention + ' ', '<@!%s> ' % bot.user.id]
def when_mentioned_or(*prefixes):
"""A callable that implements when mentioned or other prefixes provided.

Loading…
Cancel
Save