Properties
Private _set_ready
_set_ready: ( ) => void = ...
Private _set_unready
_set_unready: ( force?: boolean ) => void = ...
api_base
api_base: string = "https://discord.com/api/v8"
Private features
features
: Map < string , Feature > = ...
getSlashCommands
get
SlashCommands: ( opts: { commandID?: string ; guildID?: string } ) => Promise < ApplicationCommand [] > = ...
Type declaration
Parameters
opts: { commandID?: string ; guildID?: string }
Optional commandID?: string
Optional guildID?: string
guilds
guilds: string [] = ...
Private heartbeat
heartbeat: undefined | number
Private heartbeat_seq
heartbeat_seq: null | number = null
Private intents
intents: number
is_ready
is_ready: boolean = false
modifySlashCommand
Type declaration
Parameters
commandID: string
Optional guildID: string
ready
ready: Promise < void >
respondToInteraction
respond
ToInteraction: ( interaction: { id: string ; token: string } , response: InteractionResponse ) => Promise < AxiosResponse < any > > = ...
Type declaration
( interaction: { id: string ; token: string } , response: InteractionResponse ) : Promise < AxiosResponse < any > >
Parameters
interaction: { id: string ; token: string }
Returns Promise < AxiosResponse < any > >
Private session_id
session_id: string = ""
unregisterSlashCommand
unregisterSlashCommand: ( commandID: string , guildID?: string ) => Promise < boolean > = ...
Type declaration
( commandID: string , guildID?: string ) : Promise < boolean >
Parameters
commandID: string
Optional guildID: string
Returns Promise < boolean >
Private ws
ws: null | WebSocket = null
Readonly Static captureRejectionSymbol
Defined in node_modules/@types/node/events.d.ts:43
Static captureRejections
captureRejections: boolean
Defined in node_modules/@types/node/events.d.ts:49
Static defaultMaxListeners
defaultMaxListeners: number
Defined in node_modules/@types/node/events.d.ts:50
Readonly Static errorMonitor
Defined in node_modules/@types/node/events.d.ts:42
Sets or gets the default captureRejection value for all emitters.