Documentation ¶
Index ¶
Constants ¶
View Source
const ExtraDelay = 250 * time.Millisecond
ExtraDelay because Discord is trash. I've seen this in both litcord and discordgo, with dgo claiming from his experiments. RE: Those who want others to fix it for them: release the source code then.
Variables ¶
View Source
var MajorRootPaths = []string{"channels", "guilds"}
TODO: webhook
Functions ¶
func ParseBucketKey ¶
Types ¶
type CustomRateLimit ¶
type Limiter ¶
type Limiter struct { // Only 1 per bucket CustomLimits []*CustomRateLimit // contains filtered or unexported fields }
func NewLimiter ¶
func NewLimiter() *Limiter
Click to show internal directories.
Click to hide internal directories.