enum DiscordMiddleware::RateLimiterKey

Overview

Enum for specifying which event attribute should be used for rate limiting, in order to have per-user, per-channel, or a per-guild rate limit.

Defined in:

discordcr-middleware/middleware/rate_limiter.cr

Enum Members

UserID = 0
ChannelID = 1
GuildID = 2

Instance Method Summary

Instance Method Detail

def channel_id? #

[View source]
def guild_id? #

[View source]
def user_id? #

[View source]