style(files): reorganize everything
This commit is contained in:
parent
0a445aa1c7
commit
c408afc879
13 changed files with 422 additions and 389 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue