Enumeration: CommandType
Since
1.0.0 A bitfield that discriminates command modules
Example
export default commandModule({
type : CommandType.Text,
name : 'a text command'
execute(message) {
console.log(message.content)
}
})
Enumeration Members
Both
• Both = 3
The CommandType for hybrid commands, text and slash
Defined in
src/handler/structures/enums.ts:29
Button
• Button = 16
The CommandType for ButtonInteraction commands
Defined in
src/handler/structures/enums.ts:41
ChannelSelect
• ChannelSelect = 256
The CommandType for the other SelectMenuInteractions
Defined in
src/handler/structures/enums.ts:53
CtxMsg
• CtxMsg = 8
The CommandType for MessageContextMenuInteraction commands
Defined in
src/handler/structures/enums.ts:37
CtxUser
• CtxUser = 4
The CommandType for UserContextMenuInteraction commands
Defined in
src/handler/structures/enums.ts:33
MentionableSelect
• MentionableSelect = 512
Defined in
src/handler/structures/enums.ts:54
Modal
• Modal = 64
The CommandType for ModalSubmitInteraction commands
Defined in
src/handler/structures/enums.ts:49
RoleSelect
• RoleSelect = 1024
Defined in
src/handler/structures/enums.ts:55
Slash
• Slash = 2
The CommandType for slash commands
Defined in
src/handler/structures/enums.ts:25
StringSelect
• StringSelect = 32
The CommandType for StringSelectMenuInteraction commands
Defined in
src/handler/structures/enums.ts:45
Text
• Text = 1
The CommandType for text commands
Defined in
src/handler/structures/enums.ts:21
UserSelect
• UserSelect = 2048