cdndl

package
v0.0.0-...-adcf733 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: Unlicense Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EndpointCDNEmojis = discordgo.EndpointCDN + "emojis/"

discordgo uses EndpointAPI, which includes an extra "/api" path element

Functions

func Attachment

func Attachment(url string) error

func Avatar

func Avatar(u *discordgo.User) error

func ChannelIcon

func ChannelIcon(cid, hash string) error

func Emoji

func Emoji(id string, animated bool) error

func Icon

func Icon(gid, hash string) error

func NewErrNotOk

func NewErrNotOk(URL string, code int) error

func Splash

func Splash(gid, hash string) error

Types

type ErrNotOk

type ErrNotOk struct {
	URL        string
	StatusCode int
	// contains filtered or unexported fields
}

Returned when the request gets a non-200 HTTP response.

Jump to

Keyboard shortcuts

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