changed Bot to App

This commit is contained in:
2024-04-18 17:19:01 +02:00
parent 2fef5fb6de
commit a5fdf699d6
5 changed files with 14 additions and 11 deletions

View File

@@ -7,6 +7,9 @@ import (
func setAutoJoinRole(guildID string, option string, roleID string) bool {
var role_exists bool
var autojoinroles_exists bool
if option == "app" { // stop renaming stuff Discord
option = "bot"
}
err := db.QueryRow("SELECT EXISTS (SELECT 1 FROM autojoinroles WHERE guild_id = $1)", guildID).Scan(&autojoinroles_exists)
if err != nil {
logrus.Error(err)