now blocking autojoinroles with missing permissions

This commit is contained in:
2024-03-04 17:38:55 +01:00
parent 031d8ee81d
commit 4d02026f25
3 changed files with 55 additions and 22 deletions

16
main.go
View File

@@ -5,8 +5,6 @@ import (
"log"
"os"
"os/signal"
"strconv"
"strings"
"syscall"
"database/sql"
@@ -55,17 +53,3 @@ func main() {
fmt.Println("\nShutting down...")
discord.Close()
}
func int64Ptr(i int64) *int64 {
return &i
}
func hexToDecimal(hexColor string) int {
// Remove the hash symbol if it's present
hexColor = strings.TrimPrefix(hexColor, "#")
decimal, err := strconv.ParseInt(hexColor, 16, 64)
if err != nil {
return 0
}
return int(decimal)
}