DefaultBucketAccessor

Default BucketAccessor implementation based on rate limit scopes.

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.

See also

Constructors

Link copied to clipboard
constructor(scope: RateLimitScope, bucketFactory: BucketFactory)

Functions

Link copied to clipboard
open suspend override fun getBucket(context: BContext, event: GenericComponentInteractionCreateEvent): Bucket
open suspend override fun getBucket(context: BContext, event: GenericCommandInteractionEvent, commandInfo: ApplicationCommandInfo): Bucket
open suspend override fun getBucket(context: BContext, event: MessageReceivedEvent, commandInfo: TextCommandInfo): Bucket