Skip to content
sern

CommandType

Since

1.0.0 A bitfield that discriminates command modules

Example

1
export default commandModule({
2
// highlight-next-line
3
type : CommandType.Text,
4
name : 'a text command'
5
execute(message) {
6
console.log(message.content)
7
}
8
})

Enumeration Members

Both

Both: 3

Source

src/core/structures/enums.ts:20


Button

Button: 16

Source

src/core/structures/enums.ts:23


ChannelSelect

ChannelSelect: 1024

Source

src/core/structures/enums.ts:29


CtxMsg

CtxMsg: 8

Source

src/core/structures/enums.ts:22


CtxUser

CtxUser: 4

Source

src/core/structures/enums.ts:21


MentionableSelect

MentionableSelect: 512

Source

src/core/structures/enums.ts:28


Modal: 64

Source

src/core/structures/enums.ts:25


RoleSelect

RoleSelect: 256

Source

src/core/structures/enums.ts:27


Slash

Slash: 2

Source

src/core/structures/enums.ts:19


StringSelect

StringSelect: 32

Source

src/core/structures/enums.ts:24


Text

Text: 1

Source

src/core/structures/enums.ts:18


UserSelect

UserSelect: 128

Source

src/core/structures/enums.ts:26