Documentation ¶
Index ¶
- Variables
- func AddHandler(evt string, cb func(*Event), t interface{})
- func EvictCacheSet(slot *cacheset.Slot, key interface{})
- func PollEvents()
- func Publish(evt string, target int64, data interface{}) error
- func PublishLogErr(evt string, target int64, data interface{})
- func PublishRatelimit(rl *discordgo.RateLimit)
- type Event
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // if set, return true to handle the event, false to ignore it FilterFunc func(guildID int64) (handle bool) )
Functions ¶
func AddHandler ¶
AddEventHandler adds a event handler For the specified event, should only be done during startup
func EvictCacheSet ¶ added in v1.31.10
EvictCacheSet sends a pubsub to evict the key on slot on all nodes if guildID is set to -1, otherwise the bot worker for that guild is the only one that handles it
func PollEvents ¶
func PollEvents()
func PublishLogErr ¶ added in v1.31.10
func PublishRatelimit ¶ added in v1.31.10
func PublishRatelimit(rl *discordgo.RateLimit)
PublishRatelimit publishes a new global ratelimit hit on discord
Types ¶
Click to show internal directories.
Click to hide internal directories.