mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-22 16:51:59 +00:00
Fix Bot.get_prefix second parameter breaking.
This commit is contained in:
parent
5ae9ea26b1
commit
607771c4f4
@ -795,7 +795,7 @@ class BotBase(GroupMixin):
|
||||
"""
|
||||
prefix = ret = self.command_prefix
|
||||
if callable(prefix):
|
||||
ret = await discord.utils.maybe_coroutine(prefix, self, ret)
|
||||
ret = await discord.utils.maybe_coroutine(prefix, self, message)
|
||||
|
||||
if isinstance(ret, (list, tuple)):
|
||||
ret = [p for p in ret if p]
|
||||
|
Loading…
x
Reference in New Issue
Block a user