now blocking autojoinroles with missing permissions
This commit is contained in:
16
main.go
16
main.go
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user