emoji

package
v0.0.0-...-8fd61c5 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: BSD-3-Clause Imports: 3 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CachedEmoji

type CachedEmoji struct {
	GuildId       uint64   `json:"-"`
	Name          string   `json:"name"`
	Roles         []uint64 `json:"roles"`
	User          uint64   `json:"user"`
	RequireColons bool     `json:"require_colons"`
	Managed       bool     `json:"managed"`
	Animated      bool     `json:"animated"`
}

func (*CachedEmoji) ToEmoji

func (e *CachedEmoji) ToEmoji(emojiId uint64, user user.User) Emoji

type Emoji

type Emoji struct {
	Id            objects.NullableSnowflake `json:"id"`
	Name          string                    `json:"name"` // if this is not a custom emote, Name will be the unicode emoji, and Id will be 0
	Roles         utils.Uint64StringSlice   `json:"roles,omitempty"`
	User          user.User                 `json:"user"`
	RequireColons bool                      `json:"require_colons"`
	Managed       bool                      `json:"managed"`
	Animated      bool                      `json:"animated"`
}

https://discord.com/developers/docs/resources/emoji#emoji-object

func (*Emoji) ToCachedEmoji

func (e *Emoji) ToCachedEmoji(guildId uint64) CachedEmoji

Jump to

Keyboard shortcuts

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