i give up

This commit is contained in:
DjDeveloperr 2021-03-14 15:17:19 +05:30
parent 1b77ea0411
commit b02b16ffcc
1 changed files with 4 additions and 5 deletions

View File

@ -7,14 +7,12 @@ import {
} from '../types/channel.ts' } from '../types/channel.ts'
import { INTERACTION_CALLBACK, WEBHOOK_MESSAGE } from '../types/endpoint.ts' import { INTERACTION_CALLBACK, WEBHOOK_MESSAGE } from '../types/endpoint.ts'
import { import {
InteractionApplicationCommandData,
InteractionApplicationCommandOption, InteractionApplicationCommandOption,
InteractionChannelPayload, InteractionChannelPayload,
InteractionPayload, InteractionPayload,
InteractionResponseFlags, InteractionResponseFlags,
InteractionResponsePayload, InteractionResponsePayload,
InteractionResponseType, InteractionResponseType,
InteractionType,
SlashCommandOptionType SlashCommandOptionType
} from '../types/slash.ts' } from '../types/slash.ts'
import { Dict } from '../utils/dict.ts' import { Dict } from '../utils/dict.ts'
@ -28,6 +26,7 @@ import { Message } from './message.ts'
import { Role } from './role.ts' import { Role } from './role.ts'
import { GuildTextChannel, TextChannel } from './textChannel.ts' import { GuildTextChannel, TextChannel } from './textChannel.ts'
import { User } from './user.ts' import { User } from './user.ts'
import { Webhook } from './webhook.ts'
interface WebhookMessageOptions extends MessageOptions { interface WebhookMessageOptions extends MessageOptions {
embeds?: Embed[] embeds?: Embed[]
@ -87,15 +86,15 @@ export class InteractionUser extends User {
export class Interaction extends SnowflakeBase { export class Interaction extends SnowflakeBase {
/** This will be `SlashClient` in case of `SlashClient#verifyServerRequest` */ /** This will be `SlashClient` in case of `SlashClient#verifyServerRequest` */
client: Client client!: Client
type: number type: number
token: string token: string
/** Interaction ID */ /** Interaction ID */
id: string id: string
data: InteractionData data: InteractionData
channel: GuildTextChannel channel: GuildTextChannel
guild: Guild guild?: Guild
member: Member member?: Member
_savedHook?: Webhook _savedHook?: Webhook
_respond?: (data: InteractionResponsePayload) => unknown _respond?: (data: InteractionResponsePayload) => unknown