discord-botinator
    Preparing search index...

    Class Command<T, TUser, TBot>Abstract

    The base class for creating commands.

    See Bot.refreshCommands for an example implementation.

    Type Parameters

    • T extends Bot<any>
    • TUser = T extends Bot<infer U> ? U : never
    • TBot extends Bot<TUser> = T

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    bot: TBot
    log: Logger<ILogObj> = ...

    Methods

    • The name of the command.

      Returns string

      The name

    • Returns boolean

      If this command is a global command

    • Returns boolean

      If this command is a guild command