tools

package module
v0.0.0-...-a7cbea3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2022 License: Apache-2.0 Imports: 3 Imported by: 1

README

Disgo Tools

The Disgo Tools module contains utility tools that help you create a Disgo Bot.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DataURI

func DataURI(contentType, base64EncodedData string) string

DataURI returns a Data URI from the given HTTP Content Type Header and base64 encoded data.

https://en.wikipedia.org/wiki/Data_URI_scheme

func ImageDataURI

func ImageDataURI(img []byte) string

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

OptionsToMap parses an array of options and suboptions into an OptionMap.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL