Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Handler

Hierarchy

  • Handler

Index

Constructors

Properties

wrapper: Wrapper

Accessors

  • get client(): Client<boolean>
  • readonly

    Returns Client<boolean>

    the discord.js client (DiscordJS#Client));

  • get commandDir(): string
  • get prefix(): string
  • get privateServers(): { id: string; test: boolean }[]
  • readonly

    Returns { id: string; test: boolean }[]

    []} Private server ID for testing or personal use

Methods

  • commandResult(module: CommandVal, message: Message<boolean>): Promise<undefined | possibleOutput<string>>
  • Parameters

    • module: CommandVal

      Command file information

    • message: Message<boolean>

      The message object

    Returns Promise<undefined | possibleOutput<string>>

    Takes return value and replies it, if possible input

  • findModuleFrom<T>(ctx: T): undefined | CommandVal
  • Type parameters

    • T: CommandInteraction<CacheType> | Message<boolean>

    Parameters

    • ctx: T

      name of possible command

    Returns undefined | CommandVal

  • interactionResult(module: CommandVal, interaction: CommandInteraction<CacheType>): Promise<undefined | possibleOutput<string>>
  • Parameters

    • module: CommandVal

      Command file information

    • interaction: CommandInteraction<CacheType>

      The Discord.js command interaction (DiscordJS#CommandInteraction))

    Returns Promise<undefined | possibleOutput<string>>

    Takes return value and replies it, if possible input

  • registerModules(modArr: { absPath: string; mod: Module<unknown>; name: string }[]): Promise<void>
  • This function chains Files.buildData

    Parameters

    • modArr: { absPath: string; mod: Module<unknown>; name: string }[]

      module information

    Returns Promise<void>

  • reloadSlash(cmdName: string, description: string, options: ApplicationCommandOptionData[]): Promise<void>
  • Parameters

    • cmdName: string

      name of command

    • description: string

      description of command

    • options: ApplicationCommandOptionData[]

      any options for the slash command

    Returns Promise<void>

Generated using TypeDoc