diff options
| author | zephyrkul <[email protected]> | 2018-08-28 20:51:45 -0600 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2018-08-28 23:50:57 -0400 |
| commit | b9ef80b0d012b0aa94f89c2475de6c288781ee36 (patch) | |
| tree | 7aba4bd8cd2f128cad076b4ea8f6f293559793e4 | |
| parent | Fix typo in on_raw_reaction_add event. (diff) | |
| download | discord.py-b9ef80b0d012b0aa94f89c2475de6c288781ee36.tar.xz discord.py-b9ef80b0d012b0aa94f89c2475de6c288781ee36.zip | |
[commands] Prepend mention prefixes in commands.when_mentioned_or
| -rw-r--r-- | discord/ext/commands/bot.py | 2 |
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 |