diff options
| author | ascpial <mail@ascpial.fr> | 2025-09-27 23:35:32 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-27 23:35:32 +0200 |
| commit | bc86bb4859c4537032f9ca8d57ac32cc14dbd629 (patch) | |
| tree | e94686d7b091857788fe3f1b582f6ce540e00d71 /config/guild.go | |
| parent | cfdba5f417bb31aac564d13becc09874f17d075d (diff) | |
[Feat] Role reaction (#15)
* first draft of rolereact
* fix(rolereact): fill description when setting it
* fix(rolereact): fix some issues
* feat(rolereact): split the code in multiple files
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 { |
