Class Context

Hierarchy

  • Context

Constructors

Properties

args: null | string[]
command: null | CommandObject
params: null | BaseParam[]
parent: null | GroupObject
prefix?: string

Accessors

  • get signature(): string
  • Points to the full command name, including group

    Returns string

Methods

  • If a prefix command was used this is equivalent to 'AnyTextChannelWithoutGroup.sendTyping()', otherwise 'CommandInteraction.defer()'

    Parameters

    • Optional options: {
          ephemeral?: boolean;
      }

      The defer options

      • Optional ephemeral?: boolean

    Returns Promise<void>

  • Get a parameter value

    Type Parameters

    • T

    Parameters

    • param: string

      The parameter name, you have to use Param decorator before

    • defaultValue: any = null

      If there is not a value for that parameter this value will be returned

    Returns null | T

    The parameter value, an attachment, string, number, boolean, role, member, channel or null

Generated using TypeDoc