Skip to content

Commit

Permalink
added createInteractionResponse to ts docs
Browse files Browse the repository at this point in the history
  • Loading branch information
JustCat80 committed Jun 3, 2021
1 parent 041369b commit 83000ee
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@ declare namespace Eris {
export const VERSION: string;

// TYPES

type InteractionOptions = {
allowedMentions?: AllowedMentions;
content?: string;
embed?: EmbedOptions;
flags?: number;
messageReference?: MessageReferenceReply;
tts?: boolean;
type: number;
};

// Cache
type Uncached = { id: string };

Expand Down Expand Up @@ -1584,6 +1595,7 @@ declare namespace Eris {
createGuildEmoji(guildID: string, options: EmojiOptions, reason?: string): Promise<Emoji>;
createGuildFromTemplate(code: string, name: string, icon?: string): Promise<Guild>;
createGuildTemplate(guildID: string, name: string, description?: string | null): Promise<GuildTemplate>;
createInteractionResponse(interactionID: string, interactionToken: string, options: InteractionOptions): Promise<void>;
createMessage(channelID: string, content: MessageContent, file?: MessageFile | MessageFile[]): Promise<Message>;
createRole(guildID: string, options?: RoleOptions | Role, reason?: string): Promise<Role>;
crosspostMessage(channelID: string, messageID: string): Promise<Message>;
Expand Down

0 comments on commit 83000ee

Please sign in to comment.