From 37681dd0eafa4ebdfdb96e3194cfb158002567bb Mon Sep 17 00:00:00 2001 From: Rapptz Date: Mon, 24 Apr 2017 00:23:23 -0400 Subject: [PATCH] [commands] Fix lack of space in when_mentioned --- discord/ext/commands/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py index 43254a4d2..33796f98d 100644 --- a/discord/ext/commands/bot.py +++ b/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.