mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-21 08:17:47 +00:00
[commands] Fix lack of space in when_mentioned
This commit is contained in:
parent
6188397fc9
commit
37681dd0ea
@ -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…
x
Reference in New Issue
Block a user