Documentation
¶
Index ¶
- type Dgrs
- func (s *Dgrs) Channel(_ *discordgo.Session, id string) (c *discordgo.Channel, err error)
- func (s *Dgrs) Guild(_ *discordgo.Session, id string) (g *discordgo.Guild, err error)
- func (s *Dgrs) Role(_ *discordgo.Session, gID, id string) (r *discordgo.Role, err error)
- func (s *Dgrs) SelfUser(_ *discordgo.Session) (u *discordgo.User, err error)
- func (s *Dgrs) User(_ *discordgo.Session, id string) (u *discordgo.User, err error)
- type Internal
- func (*Internal) Channel(s *discordgo.Session, id string) (c *discordgo.Channel, err error)
- func (*Internal) Guild(s *discordgo.Session, id string) (g *discordgo.Guild, err error)
- func (*Internal) Role(s *discordgo.Session, gID, id string) (r *discordgo.Role, err error)
- func (*Internal) SelfUser(s *discordgo.Session) (u *discordgo.User, err error)
- func (*Internal) User(s *discordgo.Session, id string) (u *discordgo.User, err error)
- type State
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) // Role returns a role object by its ID, whether // from cache or fetched from the API when not stored // in the state chache. Role(s *discordgo.Session, gID, id string) (*discordgo.Role, error) // User returns a user object by its ID, whether // from cache or fetched from the API when not stored // in the state chache. User(s *discordgo.Session, id string) (*discordgo.User, error) }
State defines an implementation of the state cache.
Click to show internal directories.
Click to hide internal directories.