Table of Contents

Method MakeId

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

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

Creates a bucket ID from given bucket parameters.

public static string MakeId(string fullCommandName, ulong botId, ulong userId = 0, ulong channelId = 0, ulong guildId = 0)

Parameters

fullCommandName string

Full name of the command with which this cooldown is associated.

botId ulong

ID of the bot with which this cooldown is associated.

userId ulong

ID of the user with which this cooldown is associated.

channelId ulong

ID of the channel with which this cooldown is associated.

guildId ulong

ID of the guild with which this cooldown is associated.

Returns

string

Generated bucket ID.