Skip to content

Commit 3c11647

Browse files
committed
feat(interactions): Added app_permissions attribute to BaseInteraction
1 parent 57d8e64 commit 3c11647

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

discord/interactions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
from .http import HTTPClient
1313
from .reaction import Reaction
1414
from .flags import MessageFlags
15+
from .permissions import Permissions
1516
from .mentions import AllowedMentions
1617
from typing_extensions import Literal
1718
from .message import Message, Attachment
@@ -283,6 +284,7 @@ def __init__(self, state, data):
283284
self.user_id = int(self._user['id'])
284285
self.author_locale: Locale = try_enum(Locale, data['locale'])
285286
self.guild_locale: Locale = try_enum(Locale, data.get('guild_locale', None))
287+
self.app_permissions: Permissions = Permissions(int(data['app_permissions']))
286288
self._message: Optional[Message, EphemeralMessage] = None
287289
self.member: Optional[Member] = None
288290
self.user: Optional[User] = None

0 commit comments

Comments
 (0)