Browse Source

Fix default allowed_mentions for partial webhook state

pull/9218/head
Rapptz 2 years ago
parent
commit
346ade168e
  1. 4
      discord/webhook/async_.py

4
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)

Loading…
Cancel
Save