mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-28 03:52:57 +00:00
Fix various implementation bugs with allowed mentions
This commit is contained in:
@@ -838,6 +838,8 @@ class Messageable(metaclass=abc.ABCMeta):
|
||||
mentions = state.mentions.merge(mentions).to_dict()
|
||||
else:
|
||||
mentions = mentions.to_dict()
|
||||
else:
|
||||
mentions = state.mentions and state.mentions.to_dict()
|
||||
|
||||
if file is not None and files is not None:
|
||||
raise InvalidArgument('cannot pass both file and files parameter to send()')
|
||||
|
||||
Reference in New Issue
Block a user