mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-12-22 09:00:10 +00:00
bots: fix language selection
you may have to re-apply your language choice.
This commit is contained in:
parent
32af107699
commit
25a1ca5a9f
4
api.go
4
api.go
@ -2092,7 +2092,9 @@ func (app *appContext) ModifyConfig(gc *gin.Context) {
|
||||
if section == "email" && setting == "method" && value == "disabled" {
|
||||
value = ""
|
||||
}
|
||||
if value.(string) != app.config.Section(section).Key(setting).MustString("") {
|
||||
if (section == "discord" || section == "matrix") && setting == "language" {
|
||||
tempConfig.Section("telegram").Key("language").SetValue(value.(string))
|
||||
} else if value.(string) != app.config.Section(section).Key(setting).MustString("") {
|
||||
tempConfig.Section(section).Key(setting).SetValue(value.(string))
|
||||
}
|
||||
}
|
||||
|
@ -122,7 +122,6 @@ func (d *DiscordDaemon) ListRoles() (roles [][2]string, err error) {
|
||||
return
|
||||
}
|
||||
for _, role := range r {
|
||||
fmt.Println(d.username)
|
||||
if role.Name != d.username && role.Name != "@everyone" {
|
||||
roles = append(roles, [2]string{role.ID, role.Name})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user