Browse Source
Fix entitlement_delete event dispatch
pull/9619/head
owocado
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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)): |
|
|
|