discord

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	Servers map[string]*ServerCache
	// contains filtered or unexported fields
}

func NewCache

func NewCache(discord *discordgo.Session) *Cache

func (*Cache) Cache

func (r *Cache) Cache(serverID string, server *ServerCache) error

func (*Cache) CacheAll

func (r *Cache) CacheAll()

func (*Cache) GetRole added in v1.0.8

func (r *Cache) GetRole(serverID, roleID string) *discordgo.Role

type ServerCache

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

func (*ServerCache) DeleteRole

func (c *ServerCache) DeleteRole(roleID string)

func (*ServerCache) FindRoleByTagAndName added in v1.0.8

func (c *ServerCache) FindRoleByTagAndName(tagAndName string) *discordgo.Role

func (*ServerCache) GetRole added in v1.0.8

func (c *ServerCache) GetRole(roleID string) *discordgo.Role

func (*ServerCache) UpdateRole

func (c *ServerCache) UpdateRole(role *discordgo.Role)

Jump to

Keyboard shortcuts

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