Class: Discordrb::Commands::SimpleRateLimiter
- Inherits:
-
Object
- Object
- Discordrb::Commands::SimpleRateLimiter
- 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.
Instance Method Summary collapse
-
#initialize ⇒ SimpleRateLimiter
constructor
Makes a new rate limiter.
Methods included from RateLimiter
#bucket, #clean, #include_buckets, #rate_limited?
Constructor Details
#initialize ⇒ SimpleRateLimiter
Makes a new rate limiter
140 141 142 |
# File 'lib/discordrb/commands/rate_limiter.rb', line 140 def initialize @buckets = {} end |