Fix various implementation bugs with allowed mentions

This commit is contained in:
Rapptz
2020-04-04 12:45:17 -04:00
parent 041785937e
commit 481b335f2d
3 changed files with 11 additions and 7 deletions

View File

@ -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()')