Skip to main content

Class: App

Constructors

constructor

new App(options?)

Parameters

NameType
options?AppOptions

Defined in

packages/disploy/src/client/App.ts:33

Properties

_commandBuffer

Private _commandBuffer: Command[] = []

Defined in

packages/disploy/src/client/App.ts:30


_handlerBuffer

Private _handlerBuffer: ButtonHandler[] = []

Defined in

packages/disploy/src/client/App.ts:31


channels

channels: ChannelManager

Defined in

packages/disploy/src/client/App.ts:25


clientId

clientId: string

Defined in

packages/disploy/src/client/App.ts:14


commands

commands: CommandManager

Defined in

packages/disploy/src/client/App.ts:19


guilds

guilds: StructureManager<Guild>

Defined in

packages/disploy/src/client/App.ts:24


handlers

handlers: MessageComponentManager

Defined in

packages/disploy/src/client/App.ts:20


logger

logger: Logger

Defined in

packages/disploy/src/client/App.ts:18


publicKey

publicKey: null | string

Defined in

packages/disploy/src/client/App.ts:13


rest

rest: Rest

Defined in

packages/disploy/src/client/App.ts:17


router

router: Router

Defined in

packages/disploy/src/client/App.ts:15


token

token: string

Defined in

packages/disploy/src/client/App.ts:16


user

user: ToBeFetched<User>

Defined in

packages/disploy/src/client/App.ts:28


users

users: StructureManager<User>

Defined in

packages/disploy/src/client/App.ts:23

Methods

_loadCommands

Private _loadCommands(commands): void

Parameters

NameType
commandsundefined | Command[]

Returns

void

Defined in

packages/disploy/src/client/App.ts:42


_loadHandlers

Private _loadHandlers(handlers): void

Parameters

NameType
handlersundefined | ButtonHandler[]

Returns

void

Defined in

packages/disploy/src/client/App.ts:51


start

start(__namedParameters): void

Parameters

NameType
__namedParametersObject
__namedParameters.clientIdstring
__namedParameters.commands?Command[]
__namedParameters.handlers?ButtonHandler[]
__namedParameters.publicKeynull | string
__namedParameters.tokenstring

Returns

void

Defined in

packages/disploy/src/client/App.ts:60