removed unused funtions
This commit is contained in:
7
tool.go
7
tool.go
@@ -140,8 +140,6 @@ func getHighestRole(guildID string, c bot.Client) (*discord.Role, error) {
|
|||||||
return highestRole, nil
|
return highestRole, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func ptr(s string) *string { return &s }
|
|
||||||
|
|
||||||
func hexToDecimal(hexColor string) int {
|
func hexToDecimal(hexColor string) int {
|
||||||
hexColor = strings.TrimPrefix(hexColor, "#")
|
hexColor = strings.TrimPrefix(hexColor, "#")
|
||||||
decimal, err := strconv.ParseInt(hexColor, 16, 64)
|
decimal, err := strconv.ParseInt(hexColor, 16, 64)
|
||||||
@@ -151,11 +149,6 @@ func hexToDecimal(hexColor string) int {
|
|||||||
return int(decimal)
|
return int(decimal)
|
||||||
}
|
}
|
||||||
|
|
||||||
func decimalToHex(decimal int) string {
|
|
||||||
hexString := strconv.FormatInt(int64(decimal), 16)
|
|
||||||
return hexString
|
|
||||||
}
|
|
||||||
|
|
||||||
func simpleGetFromAPI(key string, url string) interface{} {
|
func simpleGetFromAPI(key string, url string) interface{} {
|
||||||
client := &http.Client{}
|
client := &http.Client{}
|
||||||
req, err := http.NewRequest("GET", url, nil)
|
req, err := http.NewRequest("GET", url, nil)
|
||||||
|
Reference in New Issue
Block a user