Table of Contents

Class SlashCommandCooldownBucket

Namespace
DSharpPlus.SlashCommands.Attributes
Assembly
DSharpPlus.SlashCommands.dll

Represents a cooldown bucket for commands.

public sealed class SlashCommandCooldownBucket
Inheritance
object
SlashCommandCooldownBucket

Properties

BotId

The bot's ID.

BucketId

Gets the ID of the bucket. This is used to distinguish between cooldown buckets.

ChannelId

Gets the ID of the channel with which this cooldown is associated.

FullCommandName

The command's full name (includes groups and subcommands).

GuildId

Gets the ID of the guild with which this cooldown is associated.

MaxUses

Gets the maximum number of times this command can be used in given timespan.

RemainingUses

Gets the remaining number of uses before the cooldown is triggered.

Reset

Gets the time after which this cooldown resets.

ResetsAt

Gets the date and time at which the cooldown resets.

UserId

Gets the ID of the user with whom this cooldown is associated.

Methods

Equals(SlashCommandCooldownBucket)

Checks whether this SlashCommandCooldownBucket is equal to another SlashCommandCooldownBucket.

Equals(object)

Checks whether this SlashCommandCooldownBucket is equal to another object.

GetHashCode()

Gets the hash code for this SlashCommandCooldownBucket.

MakeId(string, ulong, ulong, ulong, ulong)

Creates a bucket ID from given bucket parameters.

ToString()

Returns a string representation of this command cooldown bucket.

Operators

operator ==(SlashCommandCooldownBucket, SlashCommandCooldownBucket)

Gets whether the two SlashCommandCooldownBucket objects are equal.

operator !=(SlashCommandCooldownBucket, SlashCommandCooldownBucket)

Gets whether the two SlashCommandCooldownBucket objects are not equal.