use custom prefixes

This commit is contained in:
Dustin Pianalto
2021-01-24 01:11:22 -09:00
parent ff5cfb5f3b
commit 715af8c1bc
2 changed files with 5 additions and 3 deletions
+5 -1
View File
@@ -72,7 +72,11 @@ func main() {
}
func getPrefixes(guildID string) []string {
return []string{"G.", "g."}
guild, err := services.GuildService.Guild(guildID)
if err != nil || len(guild.Prefixes) == 0 {
return []string{"G$", "g$"}
}
return guild.Prefixes
}
func ErrorHandler(ErrorChan chan disgoman.CommandError) {