Interface InteractionsHelper

Hierarchy

  • InteractionsHelper

Properties

global: ((command: CreateGlobalApplicationCommandParams) => Observable<InteractionContext>)

Type declaration

    • (command: CreateGlobalApplicationCommandParams): Observable<InteractionContext>
    • Create a global slash command

      Parameters

      • command: CreateGlobalApplicationCommandParams

      Returns Observable<InteractionContext>

guild: ((command: GuildCommandCreate) => Observable<InteractionContext>)

Type declaration

interaction: ((type: InteractionType) => Observable<InteractionContext>)

Type declaration

sync$: Observable<void>

An observable of side effects. By subscribe-ing you start the syncing of commands to Discord.

It is not required for the commands to function, but you would then have to manually create any commands using the API.

Generated using TypeDoc