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