From 2f15e7d8e4c5ae14593ab9d54267a0c217dce92d Mon Sep 17 00:00:00 2001 From: Sebastian Law <44045823+SebbyLaw@users.noreply.github.com> Date: Wed, 24 Feb 2021 00:06:44 -0800 Subject: [PATCH] fix mention_author in send causing unexpected allowed mentions --- discord/abc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/discord/abc.py b/discord/abc.py index 051304875..dcd9279e5 100644 --- a/discord/abc.py +++ b/discord/abc.py @@ -33,6 +33,7 @@ from .iterators import HistoryIterator from .context_managers import Typing from .enums import ChannelType from .errors import InvalidArgument, ClientException +from .mentions import AllowedMentions from .permissions import PermissionOverwrite, Permissions from .role import Role from .invite import Invite @@ -895,7 +896,7 @@ class Messageable(metaclass=abc.ABCMeta): allowed_mentions = state.allowed_mentions and state.allowed_mentions.to_dict() if mention_author is not None: - allowed_mentions = allowed_mentions or {} + allowed_mentions = allowed_mentions or AllowedMentions().to_dict() allowed_mentions['replied_user'] = bool(mention_author) if reference is not None: