From fbe3a6402c8376f3e8a03d8ad308cada52a9fecd Mon Sep 17 00:00:00 2001 From: Yuzu Date: Tue, 5 Jul 2022 14:43:15 -0500 Subject: [PATCH] oops --- :x | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 :x diff --git a/:x b/:x deleted file mode 100644 index 43b5f29..0000000 --- a/:x +++ /dev/null @@ -1,36 +0,0 @@ - -import type { Model } from "../Base.ts"; -import type { Snowflake } from "../../util/Snowflake.ts"; -import type { Session } from "../../session/Session.ts"; -import type { ApplicationCommandTypes, DiscordInteraction } from "../../vendor/external.ts"; -import { InteractionResponseTypes } from "../../vendor/external.ts"; -import BaseInteraction from "./BaseInteraction.ts"; -import * as Routes from "../../util/Routes.ts"; - -export class PingInteraction extends BaseInteraction implements Model { - constructor(session: Session, data: DiscordInteraction) { - super(session, data); - this.commandId = data.data!.id; - this.commandName = data.data!.name; - this.commandType = data.data!.type; - this.commandGuildId = data.data!.guild_id; - } - - commandId: Snowflake; - commandName: string; - commandType: ApplicationCommandTypes; - commandGuildId?: Snowflake; - - async pong() { - await this.session.rest.runMethod( - this.session.rest, - "POST", - Routes.INTERACTION_ID_TOKEN(this.id, this.token), - { - type: InteractionResponseTypes.Pong, - } - ); - } -} - -export default PingInteraction;