Class: Discordrb::Commands::SimpleRateLimiter

Inherits:
Object
  • Object
show all
Includes:
RateLimiter
Defined in:
lib/discordrb/commands/rate_limiter.rb

Overview

This class provides a convenient way to do rate-limiting on non-command events.

See Also:

Instance Method Summary collapse

Methods included from RateLimiter

#bucket, #clean, #include_buckets, #rate_limited?

Constructor Details

#initializeSimpleRateLimiter

Makes a new rate limiter



140
141
142
# File 'lib/discordrb/commands/rate_limiter.rb', line 140

def initialize
  @buckets = {}
end