mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
Fix default allowed_mentions for partial webhook state
This commit is contained in:
parent
aa02d55e27
commit
346ade168e
@ -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…
x
Reference in New Issue
Block a user