All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.freya022.botcommands.api.commands.ratelimit.RateLimitScope Maven / Gradle / Ivy

Go to download

A Kotlin-first (and Java) framework that makes creating Discord bots a piece of cake, using the JDA library.

There is a newer version: 3.0.0-alpha.18
Show newest version
package io.github.freya022.botcommands.api.commands.ratelimit;

/**
 * Provides rate limit scopes for the {@link DefaultRateLimiter default rate limit implementation}.
 */
public enum RateLimitScope {
    /** Limits the usage rate by the users, regardless of the execution guild/channel. */
    USER,
    /** Limits the usage rate by the users, per guild (i.e., the rate limit is local to the guild). */
    USER_PER_GUILD,
    /** Limits the usage rate by the users, per channel (i.e., the rate limit is local to the channel). */
    USER_PER_CHANNEL,
    /** Limits the usage rate by the guild. */
    GUILD,
    /** Limits the usage rate by the channel. */
    CHANNEL
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy