Browse Source

Fix entitlement_delete event dispatch

pull/9619/head
owocado 1 year ago
committed by GitHub
parent
commit
7d159920e7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      discord/state.py

2
discord/state.py

@ -1595,7 +1595,7 @@ class ConnectionState(Generic[ClientT]):
def parse_entitlement_delete(self, data: gw.EntitlementDeleteEvent) -> None:
entitlement = Entitlement(data=data, state=self)
self.dispatch('entitlement_update', entitlement)
self.dispatch('entitlement_delete', entitlement)
def _get_reaction_user(self, channel: MessageableChannel, user_id: int) -> Optional[Union[User, Member]]:
if isinstance(channel, (TextChannel, Thread, VoiceChannel)):

Loading…
Cancel
Save