aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzephyrkul <[email protected]>2018-08-28 20:51:45 -0600
committerRapptz <[email protected]>2018-08-28 23:50:57 -0400
commitb9ef80b0d012b0aa94f89c2475de6c288781ee36 (patch)
tree7aba4bd8cd2f128cad076b4ea8f6f293559793e4
parentFix typo in on_raw_reaction_add event. (diff)
downloaddiscord.py-b9ef80b0d012b0aa94f89c2475de6c288781ee36.tar.xz
discord.py-b9ef80b0d012b0aa94f89c2475de6c288781ee36.zip
[commands] Prepend mention prefixes in commands.when_mentioned_or
-rw-r--r--discord/ext/commands/bot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py
index c652c637..e7257bbd 100644
--- a/discord/ext/commands/bot.py
+++ b/discord/ext/commands/bot.py
@@ -77,7 +77,7 @@ def when_mentioned_or(*prefixes):
"""
def inner(bot, msg):
r = list(prefixes)
- r.extend(when_mentioned(bot, msg))
+ r = when_mentioned(bot, msg) + r
return r
return inner