Options
All
  • Public
  • Public/Protected
  • All
Menu

discordquery engine class

Hierarchy

  • Engine

Index

Constructors

constructor

  • new Engine(discordToken?: undefined | string): Engine

Properties

client

client: Client

The Discord.Client instance used with the engine

Optional discordToken

discordToken: undefined | string

The discord bot token to use with the client

instance

instance: EngineInstance

The EngineInstance containing context variables

stack

stack: Array<EngineCall> = []

Internal callstack for executeStack

Methods

deleteMessage

deleteMessages

  • deleteMessages(options: ChannelLogsQueryOptions): Promise<Array<SerialMessage>>

editMessage

execute

  • execute<K>(command: K, ...args: EngineCommand[K]): Promise<any>

executeStack

  • executeStack(callback: (command: keyof EngineCommand, value: any) => void): Promise<void>

fetchChannel

  • fetchChannel(channelID: string): Promise<SerialChannel | undefined>

fetchGuild

  • fetchGuild(guildID: string): Promise<SerialGuild | undefined>

fetchMember

  • fetchMember(userID: string): Promise<SerialMember | undefined>

fetchUser

  • fetchUser(userID: string): Promise<SerialUser | undefined>

listenChannel

listenClient

listenGuild

login

  • login(discordToken?: undefined | string): Promise<void>

pushStack

  • pushStack<K>(command: K, args: EngineCommand[K]): void

readChannel

  • readChannel(options: ChannelLogsQueryOptions): Promise<Array<SerialMessage>>

selectChannel

  • selectChannel(channelID: string): Promise<void>

selectGuild

  • selectGuild(guildID: string): Promise<void>

sendMessage

showChannels

  • showChannels(search?: undefined | string): Promise<Array<SerialChannel>>

showGuilds

  • showGuilds(search?: undefined | string): Promise<Array<SerialGuild>>

showMembers

  • showMembers(search?: undefined | string): Promise<Array<SerialMember>>

updatePrecense

  • updatePrecense(newPresence: PresenceData): Promise<SerialPresence | undefined>

Generated using TypeDoc