Hierarchy (View Summary, Expand)

Constructors

Properties

aliases: string[] = []
application: Application

The client instance.

beta: boolean = false

Whether the command is in beta.

configManager: configurationManager
cooldown?: number

The cooldown of the command in milliseconds.

defer: true

Whether the command should be deferred.

deprecated: boolean = false

Whether the command is deprecated.

description: string = "Sends a message after a specified time."
detailedDescription?: string
directiveParsingService: DirectiveParsingService
disabled: boolean = false

Whether the command is disabled.

ephemeral: boolean = false

Whether the command should be ephemeral.

group: string
guards: CommandGuardLike[] = []

The permission guards for the command.

isolatedSubcommands: boolean = false

Whether the subcommands of the command are isolated in their own file.

logger: Logger

The logger for the command.

maxAttempts: number = 1

The maximum number of attempts for the command, during the cooldown period.

name: "schedule"
options: Record<string, string> = {}

Options for the command. The keys are the options without dashes at the beginning, and the values are the description of the option.

permissionCheckingMode: "or" | "and" = "and"

The mode for checking permissions.

permissions: (
    | "BanMembers"
    | "KickMembers"
    | "ModerateMembers"
    | "ManageMessages"
    | "CreateInstantInvite"
    | "Administrator"
    | "ManageChannels"
    | "ManageGuild"
    | "AddReactions"
    | "ViewAuditLog"
    | "PrioritySpeaker"
    | "Stream"
    | "ViewChannel"
    | "SendMessages"
    | "SendTTSMessages"
    | "EmbedLinks"
    | "AttachFiles"
    | "ReadMessageHistory"
    | "MentionEveryone"
    | "UseExternalEmojis"
    | "ViewGuildInsights"
    | "Connect"
    | "Speak"
    | "MuteMembers"
    | "DeafenMembers"
    | "MoveMembers"
    | "UseVAD"
    | "ChangeNickname"
    | "ManageNicknames"
    | "ManageRoles"
    | "ManageWebhooks"
    | "ManageEmojisAndStickers"
    | "ManageGuildExpressions"
    | "UseApplicationCommands"
    | "RequestToSpeak"
    | "ManageEvents"
    | "ManageThreads"
    | "CreatePublicThreads"
    | "CreatePrivateThreads"
    | "UseExternalStickers"
    | "SendMessagesInThreads"
    | "UseEmbeddedActivities"
    | "ViewCreatorMonetizationAnalytics"
    | "UseSoundboard"
    | "CreateGuildExpressions"
    | "CreateEvents"
    | "UseExternalSounds"
    | "SendVoiceMessages"
    | "SendPolls"
    | "UseExternalApps"
)[] = ...

The required permissions for the member running this command. Can be modified or removed by the permission manager.

persistentCustomPermissions?: SystemOnlyPermissionResolvable[]

The persistent custom permissions for the member running this command.

These permissions are not affected by the permission manager.

persistentDiscordPermissions?: (
    | "BanMembers"
    | "KickMembers"
    | "ModerateMembers"
    | "ManageMessages"
    | "CreateInstantInvite"
    | "Administrator"
    | "ManageChannels"
    | "ManageGuild"
    | "AddReactions"
    | "ViewAuditLog"
    | "PrioritySpeaker"
    | "Stream"
    | "ViewChannel"
    | "SendMessages"
    | "SendTTSMessages"
    | "EmbedLinks"
    | "AttachFiles"
    | "ReadMessageHistory"
    | "MentionEveryone"
    | "UseExternalEmojis"
    | "ViewGuildInsights"
    | "Connect"
    | "Speak"
    | "MuteMembers"
    | "DeafenMembers"
    | "MoveMembers"
    | "UseVAD"
    | "ChangeNickname"
    | "ManageNicknames"
    | "ManageRoles"
    | "ManageWebhooks"
    | "ManageEmojisAndStickers"
    | "ManageGuildExpressions"
    | "UseApplicationCommands"
    | "RequestToSpeak"
    | "ManageEvents"
    | "ManageThreads"
    | "CreatePublicThreads"
    | "CreatePrivateThreads"
    | "UseExternalStickers"
    | "SendMessagesInThreads"
    | "UseEmbeddedActivities"
    | "ViewCreatorMonetizationAnalytics"
    | "UseSoundboard"
    | "CreateGuildExpressions"
    | "CreateEvents"
    | "UseExternalSounds"
    | "SendVoiceMessages"
    | "SendPolls"
    | "UseExternalApps"
)[]

The persistent discord permissions for the member running this command.

These permissions are not affected by the permission manager.

queueService: QueueService
since: string = "1.0.0"

The version of the bot when this command was introduced.

subcommandMeta: Record<string, SubcommandMeta> = {}

The metadata for the subcommands of the command.

subcommands: string[] = []

The subcommands of the command.

supportedContexts: readonly (Legacy | ChatInput)[] = ...

The supported contexts of the command.

systemAdminOnly: boolean = false

Whether the command can only be run by system admins.

systemAuditLogging: SystemAuditLoggingService
systemPermissions: never[] = []

The required permissions for the bot system to run this command.

usage: string[] = ...

The usage(s) of the command.

Accessors

Methods

  • Handles the case when a subcommand is not found.

    Parameters

    • context: Context

      The command context.

    • subcommand: string

      The subcommand that was not found.

    • errorType: "not_found" | "not_specified"

      The type of error that occurred.

    Returns Promise<void>

MMNEPVFCICPMFPCPTTAAATR