add a method to set the language
This commit is contained in:
parent
611aa897ca
commit
c206ba21d1
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue