DA344
2 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
2 deletions
-
discord/interactions.py
|
|
@ -717,8 +717,8 @@ class InteractionCallback(Generic[ClientT]): |
|
|
|
|
|
|
|
self.resource: Optional[InteractionCallbackResource] = None |
|
|
|
|
|
|
|
if 'resource' in data: |
|
|
|
resource = data['resource'] |
|
|
|
resource = data.get('resource') |
|
|
|
if resource is not None: |
|
|
|
|
|
|
|
self.type = try_enum(InteractionResponseType, resource['type']) |
|
|
|
|
|
|
|