Documentation ¶
Index ¶
- func EvictSession(token string)
- func GetFullGuild(guildID int64) (*dstate.GuildSet, error)
- func GetMember(guildID, userID int64) (*discordgo.Member, error)
- func GetSession(token string, sessionFetcher func(string) (*oauth2.Token, error)) (*discordgo.Session, error)
- func GetUserInfo(token string, session *discordgo.Session) (*discordgo.User, error)
- func PubEvictGuild(guildID int64)
- func PubEvictMember(guildID int64, userID int64)
- func RegisterPlugin()
- type EvictData
- type Plugin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EvictSession ¶
func EvictSession(token string)
func GetFullGuild ¶
GetFullGuild returns the guild from either: 1. Application cache 2. Botrest 3. Discord api
It will will also make sure channels are included in the event we fall back to the discord API
func GetSession ¶
func GetUserInfo ¶
func PubEvictGuild ¶
func PubEvictGuild(guildID int64)
func PubEvictMember ¶
func RegisterPlugin ¶
func RegisterPlugin()
Types ¶
type Plugin ¶
type Plugin struct{}
func (*Plugin) PluginInfo ¶
func (p *Plugin) PluginInfo() *common.PluginInfo
Click to show internal directories.
Click to hide internal directories.