From c206ba21d15b93e36e2dd15fb168f3e70828c954 Mon Sep 17 00:00:00 2001 From: Riley Date: Tue, 13 Jul 2021 14:09:27 -0700 Subject: [PATCH] add a method to set the language --- guilds.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/guilds.go b/guilds.go index ee0278b..27827f4 100644 --- a/guilds.go +++ b/guilds.go @@ -255,6 +255,13 @@ func (g *Guild) SetPrefix(newPrefix string) { g.save() } +// SetLang +// Set the prefix, then save the guild data +func (g *Guild) SetLang(lang string) { + g.Info.GuildLanguage = lang + g.save() +} + // IsMod // Check if a given ID is a moderator or not func (g *Guild) IsMod(checkId string) bool {