emoji

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: ISC Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PutGuildFirst

func PutGuildFirst(guilds []Guild, first discord.GuildID)

PutGuildFirst puts the guild with the given ID first in the guilds list.

Types

type Guild

type Guild struct {
	discord.Guild
	Emojis []discord.Emoji
}

type State

type State struct {
	// contains filtered or unexported fields
}

func NewState

func NewState(cab *store.Cabinet) *State

func (*State) AllEmojis

func (s *State) AllEmojis() ([]Guild, error)

AllEmojis returns the

func (*State) ForGuild

func (s *State) ForGuild(guildID discord.GuildID) ([]Guild, error)

ForGuild returns all emojis if the user has Nitro, else only non-animated emojis from the given guild.

func (*State) HasNitro

func (s *State) HasNitro() bool

HasNitro returns true if the current user has Nitro.

Jump to

Keyboard shortcuts

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