Represents a special return value during command execution or argument parsing.

Type Parameters

Constructors

Properties

command: T extends Continue ? string : never

Command ID.

Only exists if type is FlagType.Continue.

ignore: T extends Continue ? boolean : never

Whether or not to ignore permission checks.

Only exists if type is FlagType.Continue.

message: T extends Retry ? TextCommandMessage : never

Message to handle.

Only exists if type is FlagType.Retry.

rest: T extends Continue ? string : never

The rest of the arguments. If this is not set, the argument handler will automatically use the rest of the content.

Only exists if type is FlagType.Continue.

time: T extends Timeout ? number : never

Order waiting time .

Only exists if type is FlagType.Timeout.

type: T

The type of flag.

value: T extends Fail ? any : never

The extra data for the failure.

Only exists if type is FlagType.Fail.

Methods

  • Creates a flag that runs another command with the rest of the arguments.

    Parameters

    • command: string

      Command ID.

    • ignore: boolean = false

      Whether or not to ignore permission checks.

    • rest: null | string = null

      The rest of the arguments. If this is not set, the argument handler will automatically use the rest of the content.

    Returns Flag<Continue>