-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommands.go
85 lines (83 loc) · 1.92 KB
/
commands.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
package main
import "github.com/bwmarrin/discordgo"
var commands = []*discordgo.ApplicationCommand{
{
Name: "gamenick",
Description: "Command for setting in-game nickname",
Options: []*discordgo.ApplicationCommandOption{
{
Type: discordgo.ApplicationCommandOptionString,
Name: "nick",
Description: "In-game nickname",
Required: true,
},
},
},
{
Name: "setrollchannel",
Description: "Sets roll channel for this server",
DefaultMemberPermissions: &serverManagerPerms,
Options: []*discordgo.ApplicationCommandOption{
{
Type: discordgo.ApplicationCommandOptionChannel,
Name: "channel",
Description: "Channel for rolls",
Required: true,
ChannelTypes: []discordgo.ChannelType{
discordgo.ChannelTypeGuildText,
},
},
},
},
{
Name: "createroll",
Description: "Creates new roll for item",
DefaultMemberPermissions: &serverManagerPerms,
Options: []*discordgo.ApplicationCommandOption{
{
Type: discordgo.ApplicationCommandOptionInteger,
Name: "expiration",
Required: false,
Description: "Expiration of roll",
Choices: []*discordgo.ApplicationCommandOptionChoice{
{
Name: "1 day",
Value: 1,
},
{
Name: "3 days",
Value: 3,
},
{
Name: "7 days",
Value: 7,
},
},
},
},
},
{
Name: "feedback",
Description: "Send your feedback",
},
{
Name: "roll",
Description: "Roll a dice",
},
{
Name: "ss",
Description: "Sends image to screenshot database",
Options: []*discordgo.ApplicationCommandOption{
{
Type: discordgo.ApplicationCommandOptionAttachment,
Name: "screenshot",
Description: "Screenshot",
Required: true,
},
},
},
{
Name: "dkp-export",
Type: discordgo.UserApplicationCommand,
},
}