Interface Command

Raw form of a command handled by botloader

You shouldn't use this directly and instead use one of the builders

This should be considered UNSTABLE and might change in the future

interface Command {
    ackMessageFlags: MessageFlags;
    ackMode: AckMode;
    cb: ((ctx, args) => any);
    description: string;
    group?: Group;
    kind: CommandType;
    name: string;
    options?: OptionMap;
}

Properties

ackMessageFlags: MessageFlags
ackMode: AckMode
cb: ((ctx, args) => any)

Type declaration

    • (ctx, args): any
    • Parameters

      • ctx: {}
        • args: {}

          Returns any

      description: string
      group?: Group
      kind: CommandType
      name: string
      options?: OptionMap

      Generated using TypeDoc