diff options
| author | Anhgelus Morhtuuzh <anhgelus@anhgelus.world> | 2025-05-13 12:50:20 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <anhgelus@anhgelus.world> | 2025-05-13 12:50:20 +0200 |
| commit | c408afc8797b0da5e1d73d190a8f5884870b510c (patch) | |
| tree | b87eb4aab9f3e1f89bea29a2ce846efe324f7374 /config/guild.go | |
| parent | 0a445aa1c73bc1410899c53778ae090a24c38dac (diff) | |
style(files): reorganize everything
Diffstat (limited to 'config/guild.go')
| -rw-r--r-- | config/guild.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/guild.go b/config/guild.go index b4b7014..0971837 100644 --- a/config/guild.go +++ b/config/guild.go @@ -10,7 +10,7 @@ import ( type GuildConfig struct { gorm.Model GuildID string `gorm:"not null;unique"` - XpRoles []*XpRole + XpRoles []XpRole DisabledChannels string FallbackChannel string } @@ -46,7 +46,7 @@ func (cfg *GuildConfig) IsDisabled(channelID string) bool { func (cfg *GuildConfig) FindXpRole(roleID string) (int, *XpRole) { for i, r := range cfg.XpRoles { if r.RoleID == roleID { - return i, r + return i, &r } } return 0, nil |
