fixed customization module implementation
This commit is contained in:
10
tool.go
10
tool.go
@@ -6,7 +6,6 @@ import (
|
||||
"fmt"
|
||||
"io"
|
||||
"net/http"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/disgoorg/disgo/bot"
|
||||
@@ -126,15 +125,6 @@ func getHighestRole(guildID string, c bot.Client) (*discord.Role, error) {
|
||||
return highestRole, nil
|
||||
}
|
||||
|
||||
func hexToDecimal(hexColor string) int {
|
||||
hexColor = strings.TrimPrefix(hexColor, "#")
|
||||
decimal, err := strconv.ParseInt(hexColor, 16, 64)
|
||||
if err != nil {
|
||||
return 0
|
||||
}
|
||||
return int(decimal)
|
||||
}
|
||||
|
||||
func simpleGetFromAPI(key string, url string) interface{} {
|
||||
client := &http.Client{}
|
||||
req, err := http.NewRequest("GET", url, nil)
|
||||
|
Reference in New Issue
Block a user