From 346ade168ec59ced547ae513582557cfebf64db0 Mon Sep 17 00:00:00 2001 From: Rapptz <rapptz@gmail.com> Date: Tue, 31 Jan 2023 08:58:56 -0500 Subject: [PATCH] Fix default allowed_mentions for partial webhook state --- discord/webhook/async_.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/discord/webhook/async_.py b/discord/webhook/async_.py index 1f9a1234c..a2da86ae8 100644 --- a/discord/webhook/async_.py +++ b/discord/webhook/async_.py @@ -724,6 +724,10 @@ class _WebhookState: # state parameter is artificial return BaseUser(state=self, data=data) # type: ignore + @property + def allowed_mentions(self) -> Optional[AllowedMentions]: + return None + def get_reaction_emoji(self, data: PartialEmojiPayload) -> Union[PartialEmoji, Emoji, str]: if self._parent is not None: return self._parent.get_reaction_emoji(data)