Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dgrs ¶
type Dgrs struct {
// contains filtered or unexported fields
}
Dgrs is the State implementation for zekrotja/dgrs.
type Internal ¶
type Internal struct{}
Internal implements the state Interface for the internal discordgo.State instance.
type State ¶
type State interface { // SelfUser returns the user objects of the // authenticated user. SelfUser(s *discordgo.Session) (*discordgo.User, error) // Channel returns a channel object by its ID, whether // from cache or fetched from the API when not stored // in the state chache. Channel(s *discordgo.Session, id string) (*discordgo.Channel, error) // Guild returns a guild object by its ID, whether // from cache or fetched from the API when not stored // in the state chache. Guild(s *discordgo.Session, id string) (*discordgo.Guild, error) }
State defines an implementation of the state cache.
Click to show internal directories.
Click to hide internal directories.