Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrColorInvalid = errors.New("hex code is invalid")
)
This holds the errors that HexColorToInt will throw.
Functions ¶
func ExtractUserIDFromMention ¶
ExtractUserIDFromMention takes in a mention (<@ID>) and spits out only the ID.
func GetStringFromQuotes ¶
GetStringFromQuotes finds a "string which spans multiple spaces" in a split message. It then takes that and replaces the Quote string with a single string value of the quote contents.
func HexColorToInt ¶
HexColorToInt converts a hex color code to an int, which is usable in the Discord API. The hexCode is without the "#" prefix.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.