mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-04 14:06:07 +00:00
Update interactions.ts (#126)
This commit is contained in:
parent
be51c25931
commit
d95374f2cd
@ -82,7 +82,7 @@ export abstract class BaseInteraction implements Model {
|
|||||||
this.version = data.version;
|
this.version = data.version;
|
||||||
|
|
||||||
this.locale = data.locale as Locales;
|
this.locale = data.locale as Locales;
|
||||||
this.guildLocales = data.guild_locale as Locales;
|
this.guildLocale = data.guild_locale as Locales;
|
||||||
|
|
||||||
const perms = data.app_permissions;
|
const perms = data.app_permissions;
|
||||||
|
|
||||||
@ -118,7 +118,7 @@ export abstract class BaseInteraction implements Model {
|
|||||||
|
|
||||||
// must be implemented
|
// must be implemented
|
||||||
locale: Locales;
|
locale: Locales;
|
||||||
guildLocales: Locales;
|
guildLocale: Locales;
|
||||||
|
|
||||||
// readonly property according to docs
|
// readonly property according to docs
|
||||||
readonly version: 1;
|
readonly version: 1;
|
||||||
@ -555,7 +555,7 @@ export class PingInteraction extends BaseInteraction implements Model {
|
|||||||
commandType: ApplicationCommandTypes;
|
commandType: ApplicationCommandTypes;
|
||||||
commandGuildId?: Snowflake;
|
commandGuildId?: Snowflake;
|
||||||
override locale = undefined as never;
|
override locale = undefined as never;
|
||||||
override guildLocales = undefined as never;
|
override guildLocale = undefined as never;
|
||||||
|
|
||||||
async pong(): Promise<void> {
|
async pong(): Promise<void> {
|
||||||
await this.session.rest.post<undefined>(
|
await this.session.rest.post<undefined>(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user