Method GetBucket
- Namespace
- DSharpPlus.SlashCommands.Attributes
- Assembly
- DSharpPlus.SlashCommands.dll
GetBucket(InteractionContext)
Gets a cooldown bucket for given command context.
public SlashCommandCooldownBucket GetBucket(InteractionContext ctx)
Parameters
ctx
InteractionContextCommand context to get cooldown bucket for.
Returns
- SlashCommandCooldownBucket
Requested cooldown bucket, or null if one wasn't present.