diff options
Diffstat (limited to 'config/guild.go')
| -rw-r--r-- | config/guild.go | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/config/guild.go b/config/guild.go index e046ca7..8799186 100644 --- a/config/guild.go +++ b/config/guild.go @@ -14,6 +14,25 @@ type GuildConfig struct { DisabledChannels string FallbackChannel string DaysXPRemains uint `gorm:"default:90"` // 30 * 3 = 90 (three months) + RrMessages []RoleReactMessage +} + +type RoleReactMessage struct { + ID uint `gorm:"primarykey"` + MessageID string `gorm:"not null;unique"` + ChannelID string + GuildID string + Note string + Roles []*RoleReact + GuildConfigID uint +} + +type RoleReact struct { + ID uint `gorm:"primarykey"` + Reaction string + RoleID string + RoleReactMessageID uint + CounterID uint `gorm:"-"` } func GetGuildConfig(guildID string) *GuildConfig { |
