feat: add Locales to Interactions (#7131)

Co-authored-by: Rodry <38259440+ImRodry@users.noreply.github.com>
This commit is contained in:
Suneet Tipirneni
2022-01-11 02:55:49 -05:00
committed by iCrawl
parent ac8c122c2a
commit 233084a601
3 changed files with 22 additions and 4 deletions

View File

@@ -74,6 +74,18 @@ class Interaction extends Base {
* @type {?Readonly<Permissions>}
*/
this.memberPermissions = data.member?.permissions ? new Permissions(data.member.permissions).freeze() : null;
/**
* The locale of the user who invoked this interaction
* @type {string}
*/
this.locale = data.locale;
/**
* The preferred locale from the guild this interaction was sent in
* @type {?string}
*/
this.guildLocale = data.guild_locale ?? null;
}
/**