Table of Contents

Class CommandCooldownBucket

Namespace
DSharpPlus.CommandsNext.Attributes
Assembly
DSharpPlus.CommandsNext.dll

Represents a cooldown bucket for commands.

public sealed class CommandCooldownBucket
Inheritance
object
CommandCooldownBucket

Properties

BotId

The Id of the bot.

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(CommandCooldownBucket)

Checks whether this CommandCooldownBucket is equal to another CommandCooldownBucket.

Equals(object)

Checks whether this CommandCooldownBucket is equal to another object.

GetHashCode()

Gets the hash code for this CommandCooldownBucket.

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 ==(CommandCooldownBucket, CommandCooldownBucket)

Gets whether the two CommandCooldownBucket objects are equal.

operator !=(CommandCooldownBucket, CommandCooldownBucket)

Gets whether the two CommandCooldownBucket objects are not equal.