In Memory Bucket Accessor
class InMemoryBucketAccessor(scope: RateLimitScope, configurationSupplier: BucketConfigurationSupplier) : BucketAccessor(source)
Default in-memory BucketAccessor implementation using RateLimitScope.
Note: The rate limit scopes using guilds or channels are limited to guild-only events, a user rate limit is applied if the limitation is violated.
Parameters
scope
Scope of the rate limit, see RateLimitScope values.
configuration Supplier
A supplier of BucketConfiguration, describing the rate limits
Functions
Link copied to clipboard
open suspend override fun getBucket(context: BContext, event: GenericCommandInteractionEvent, commandInfo: ApplicationCommandInfo): Bucket
open suspend override fun getBucket(context: BContext, event: GenericComponentInteractionCreateEvent, rateLimitReference: ComponentRateLimitReference): Bucket
open suspend override fun getBucket(context: BContext, event: MessageReceivedEvent, commandInfo: TextCommandInfo): Bucket