UNPKG

disclient

Version:
20 lines (19 loc) 1.32 kB
import { Button } from "./modules/Button"; import { Embed } from "./modules/Embed"; export default class RestApiHandler { private token; constructor(token: string | null); fetchAllChannels(guildid: string): Promise<any>; fetchOneChannel(channelid: string): Promise<any>; fetchGuilds(): Promise<any>; fetchOneGuild(guildId: string): Promise<any>; fetchGuildMembers(guildId: string): Promise<any>; fetchOneGuildMember(memberId: string, guildId: string): Promise<() => Promise<any>>; PostMessage(channel: string, content: string | null): Promise<any>; createReaction(channel: string, message: string, emoji: string): Promise<void>; deleteMessage(channel: string, message: string, reason: string): Promise<void>; replyMessage(channel: string, message: string, content: string): Promise<any>; sendMessagewithEmbedandButton(channel: string, content: string | null, embeds?: Array<Embed> | null, components?: Button[] | null): Promise<any>; createInteractionResponse(message: string, interaction_token: string, interaction_id: string, emphemeral?: boolean, intertype?: number): Promise<void>; editInteractionResponse(message: string, interaction_token: string, interaction_id: string, emphemeral?: boolean, intertype?: number): Promise<void>; }