-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommand.go
38 lines (34 loc) · 878 Bytes
/
command.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package cmdlr3
import "github.com/andersfylling/disgord"
type Command struct {
Name string
CustomID string
Description string
Options []*disgord.ApplicationCommandOption
Components []*CommandMessageComponent
SubCommands []*SubCommand
Type int
Handler ExecutionHandler
}
type SubCommand struct {
Name string
Description string
Options []*disgord.ApplicationCommandOption
SubCommands []*SubCommand
Components []*CommandMessageComponent
Handler SubCommandExecutionHandler
}
type CommandMessageComponent struct {
Name string
CustomID string
Type disgord.MessageComponentType
Style disgord.ButtonStyle
Label string
Url string
Disabled bool
Options []*disgord.SelectMenuOption
Placeholder string
MinValues int
MaxValues int
Handler ExecutionHandlerComponent
}