add a method to set the language

This commit is contained in:
vel 2021-07-13 14:09:27 -07:00
parent 611aa897ca
commit c206ba21d1
Signed by: velvox
GPG Key ID: 1C8200C1D689CEF5
1 changed files with 7 additions and 0 deletions

View File

@ -255,6 +255,13 @@ func (g *Guild) SetPrefix(newPrefix string) {
g.save() g.save()
} }
// SetLang
// Set the prefix, then save the guild data
func (g *Guild) SetLang(lang string) {
g.Info.GuildLanguage = lang
g.save()
}
// IsMod // IsMod
// Check if a given ID is a moderator or not // Check if a given ID is a moderator or not
func (g *Guild) IsMod(checkId string) bool { func (g *Guild) IsMod(checkId string) bool {