Documentation ¶
Index ¶
- func DataURI(contentType, base64EncodedData string) string
- func ImageDataURI(img []byte) string
- func NumOptions(options []*disgo.ApplicationCommandInteractionDataOption) int
- func OptionsToMap(optionMap map[string]*disgo.ApplicationCommandInteractionDataOption, ...) map[string]*disgo.ApplicationCommandInteractionDataOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DataURI ¶
DataURI returns a Data URI from the given HTTP Content Type Header and base64 encoded data.
func ImageDataURI ¶
ImageDataURI returns a Data URI from the given image data.
func NumOptions ¶
func NumOptions(options []*disgo.ApplicationCommandInteractionDataOption) int
NumOptions determines the amount of options (and suboptions) in a given array of options.
func OptionsToMap ¶
func OptionsToMap( optionMap map[string]*disgo.ApplicationCommandInteractionDataOption, options []*disgo.ApplicationCommandInteractionDataOption, amount int, ) map[string]*disgo.ApplicationCommandInteractionDataOption
OptionsToMap parses an array of options and suboptions into an OptionMap.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.