Class CooldownMiddleware

java.lang.Object
com.github.kaktushose.jda.commands.dispatching.middleware.impl.CooldownMiddleware
All Implemented Interfaces:
Middleware, Consumer<InvocationContext<?>>

public class CooldownMiddleware extends Object implements Middleware
A Middleware implementation that contains the business logic behind command cooldowns. If the command isn't annotated with Cooldown or more formally if the SlashCommandDefinition doesn't hold a SlashCommandDefinition.CooldownDefinition or the delay of the SlashCommandDefinition.CooldownDefinition amounts to 0 this filter has no effect.
See Also: