We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5a9c67e + 28efe44 commit 16f9bcbCopy full SHA for 16f9bcb
discord/interactions.py
@@ -143,8 +143,8 @@ def _from_data(self, data: InteractionPayload):
143
self.channel_id: Optional[int] = utils._get_as_snowflake(data, 'channel_id')
144
self.guild_id: Optional[int] = utils._get_as_snowflake(data, 'guild_id')
145
self.application_id: int = int(data['application_id'])
146
- self.locale: Optional[str] = data['locale']
147
- self.guild_locale: Optional[str] = data['guild_locale']
+ self.locale: Optional[str] = data.get('locale')
+ self.guild_locale: Optional[str] = data.get('guild_locale')
148
149
self.message: Optional[Message]
150
try:
0 commit comments