2020-04-11 14:16:09 +00:00
|
|
|
package models
|
|
|
|
|
2020-05-25 21:58:38 +00:00
|
|
|
import discordgo "github.com/bwmarrin/discord.go"
|
2020-04-11 14:16:09 +00:00
|
|
|
|
|
|
|
type ColorRole struct {
|
|
|
|
Name string `json:"color"`
|
|
|
|
ID string `json:"id"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type CommandRestriction struct {
|
|
|
|
Command string `json:"command"`
|
|
|
|
Mode string `json:"mode"`
|
|
|
|
Channels []string `json:"channels"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Configuration struct {
|
2020-05-09 11:56:58 +00:00
|
|
|
CommandKey string `json:"command_key"`
|
|
|
|
|
2020-04-11 14:16:09 +00:00
|
|
|
GuildID string `json:"guild_id"`
|
|
|
|
|
|
|
|
StatusText string `json:"status_text"`
|
|
|
|
WelcomeText string `json:"welcome_text"`
|
2020-05-09 11:56:58 +00:00
|
|
|
RulesText string `json:"rules_text"`
|
2020-04-11 14:16:09 +00:00
|
|
|
|
|
|
|
AdminRoles []string `json:"admin_roles"`
|
|
|
|
JoinRoleIDs []string `json:"join_role_ids"`
|
|
|
|
|
|
|
|
CommandRestrictions []CommandRestriction `json:"command_restrictions"`
|
|
|
|
|
|
|
|
ColorRoles []ColorRole `json:"color_roles"`
|
|
|
|
|
2020-05-25 09:12:24 +00:00
|
|
|
LoggingChannel string `json:"logging_channel"`
|
2020-05-25 21:58:38 +00:00
|
|
|
|
|
|
|
Guild *discordgo.Guild
|
|
|
|
ConfigPath string
|
2020-04-11 14:16:09 +00:00
|
|
|
}
|