Options
All
  • Public
  • Public/Protected
  • All
Menu

discordjs-diy

Index

Type aliases

Action: ActionObject | ResponseAction | Router

The action your bot will be executing on every trigger It can be:

  • A function
  • A function that returns a Promise
  • A function that returns an embed
  • A promise
  • A string
  • Standard Discordjs Message object
  • An embed
  • A router

Returning undefined for slash commands will result in an error Note that it can be undefined or a function that returns undefined, but this will simply be ignored

ParametersMiddleWare<T>: (params: ActionParameters) => Promise<ActionParameters<T>> | ActionParameters<T>

Type parameters

  • T: GenericObject | undefined = undefined

Type declaration

SendableEmoji: EmojiResolvable | Promise<EmojiResolvable | string> | string | undefined
SendableMessage: string | MessagePayload | MessageOptions | Promise<string | MessagePayload | MessageOptions>

Functions

Generated using TypeDoc