Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CommandRequirements

An object of requirements a user must meet to use the command.

Hierarchy

  • CommandRequirements

Index

Properties

Methods

Properties

Optional dmOnly

dmOnly: boolean

If true, the message must be sent in a DM channel.

Optional guildOnly

guildOnly: boolean

If true, the message must be sent in a server channel.

Optional owner

owner: boolean

If true, the user must be the bot's owner.

Optional permissions

permissions: ("all" | "createInstantInvite" | "kickMembers" | "banMembers" | "administrator" | "manageChannels" | "manageGuild" | "addReactions" | "viewAuditLog" | "viewAuditLogs" | "voicePrioritySpeaker" | "voiceStream" | "stream" | "viewChannel" | "readMessages" | "sendMessages" | "sendTTSMessages" | "manageMessages" | "embedLinks" | "attachFiles" | "readMessageHistory" | "mentionEveryone" | "useExternalEmojis" | "externalEmojis" | "viewGuildInsights" | "voiceConnect" | "voiceSpeak" | "voiceMuteMembers" | "voiceDeafenMembers" | "voiceMoveMembers" | "voiceUseVAD" | "changeNickname" | "manageNicknames" | "manageRoles" | "manageWebhooks" | "manageEmojisAndStickers" | "manageEmojis" | "useApplicationCommands" | "useSlashCommands" | "voiceRequestToSpeak" | "manageEvents" | "manageThreads" | "createPublicThreads" | "createPrivateThreads" | "useExternalStickers" | "sendMessagesInThreads" | "startEmbeddedActivities" | "moderateMembers" | "allGuild" | "allText" | "allVoice")[]

A list of permission strings the user must have. If set, the guildOnly option is implied.

Methods

Optional custom

Generated using TypeDoc