-
Notifications
You must be signed in to change notification settings - Fork 14
/
discord_structs.go
45 lines (38 loc) · 1.38 KB
/
discord_structs.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
package main
// discord configs
type discordBase struct {
Bots []discordBot `json:"bots,omitempty"`
}
type discordBot struct {
BotName string `json:"bot_name,omitempty"`
BotID string `json:"bot_id,omitempty"`
Config discordBotConfig `json:"config,omitempty"`
Servers []discordServer `json:"servers,omitempty"`
}
type discordBotConfig struct {
Token string `json:"token,omitempty"`
Game string `json:"game,omitempty"`
DMResp responseArray `json:"dm_response,omitempty"`
}
type discordServer struct {
ServerID string `json:"server_id,omitempty"`
Config discordServerConfig `json:"config,omitempty"`
ChanGroups []channelGroup `json:"channel_groups,omitempty"`
Permissions []permission `json:"permissions,omitempty"`
Filters []filter `json:"filters,omitempty"`
}
type discordServerConfig struct {
Prefix string `json:"prefix,omitempty"`
Clear bool `json:"clear_commands,omitempty"`
WebHooks discordWebHooks `json:"web_hooks,omitempty"`
}
type discordWebHooks struct {
Logs string `json:"logs,omitempty"`
}
type discordKickOnMention struct {
Roles []string `json:"roles,omitempty"`
Users []string `json:"users,omitempty"`
Direct responseArray `json:"dm,omitempty"`
Channel responseArray `json:"channel,omitempty"`
Kick bool `json:"kick,omitempty"`
}