Browse Source

Update discord/interactions.py

Co-authored-by: Danny <[email protected]>
pull/9957/head
DA344 4 months ago
committed by GitHub
parent
commit
2592bf175e
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      discord/interactions.py

4
discord/interactions.py

@ -717,8 +717,8 @@ class InteractionCallback(Generic[ClientT]):
self.resource: Optional[InteractionCallbackResource] = None self.resource: Optional[InteractionCallbackResource] = None
if 'resource' in data: resource = data.get('resource')
resource = data['resource'] if resource is not None:
self.type = try_enum(InteractionResponseType, resource['type']) self.type = try_enum(InteractionResponseType, resource['type'])

Loading…
Cancel
Save