mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
[Core] Hotfix
send_message wasn't returning the message object
This commit is contained in:
parent
90272b378a
commit
59d4604462
5
red.py
5
red.py
@ -57,8 +57,7 @@ class Bot(commands.Bot):
|
||||
args = list(args)
|
||||
kwargs["content"] = args.pop()
|
||||
else:
|
||||
await super().send_message(*args, **kwargs)
|
||||
return
|
||||
return await super().send_message(*args, **kwargs)
|
||||
|
||||
content = kwargs['content']
|
||||
for m in self._message_modifiers:
|
||||
@ -68,7 +67,7 @@ class Bot(commands.Bot):
|
||||
pass # break send_message
|
||||
kwargs['content'] = content
|
||||
|
||||
await super().send_message(*args, **kwargs)
|
||||
return await super().send_message(*args, **kwargs)
|
||||
|
||||
def add_message_modifier(self, func):
|
||||
"""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user