Table of Contents

Namespace DSharpPlus.CommandsNext.Attributes

Classes

AliasesAttribute

Adds aliases to this command or group.

CategoryAttribute
CheckBaseAttribute

Represents a base for all command pre-execution check attributes.

CommandAttribute

Marks this method as a command.

CommandCooldownBucket

Represents a cooldown bucket for commands.

CooldownAttribute

Defines a cooldown for this command. This allows you to define how many times can users execute a specific command

DescriptionAttribute

Gives this command, group, or argument a description, which is used when listing help.

DontInjectAttribute

Prevents this field or property from having its value injected by dependency injection.

GroupAttribute

Marks this class as a command group.

GroupCommandAttribute

Marks this method as a group command.

HiddenAttribute

Marks this command or group as hidden.

ModuleLifespanAttribute

Defines a lifespan for this command module.

PriorityAttribute

Defines this command overload's priority. This determines the order in which overloads will be attempted to be called. Commands will be attempted in order of priority, in descending order.

RemainingTextAttribute

Indicates that the command argument takes the rest of the input without parsing.

RequireBotPermissionsAttribute

Defines that usage of this command is only possible when the bot is granted a specific permission.

RequireDirectMessageAttribute

Defines that a command is only usable within a direct message channel.

RequireGuildAttribute

Defines that a command is only usable within a guild.

RequireNsfwAttribute

Defines that usage of this command is restricted to NSFW channels.

RequireOwnerAttribute

Defines that usage of this command is restricted to the owner of the bot.

RequirePermissionsAttribute

Defines that usage of this command is restricted to members with specified permissions. This check also verifies that the bot has the same permissions.

RequirePrefixesAttribute

Defines that usage of this command is only allowed with specific prefixes.

RequireReferencedMessageAttribute

Defines that a command is only usable when sent in reply. Command will appear in help regardless of this attribute.

RequireRolesAttribute

Defines that usage of this command is restricted to members with specified role. Note that it's much preferred to restrict access using RequirePermissionsAttribute.

RequireUserPermissionsAttribute

Defines that usage of this command is restricted to members with specified permissions.

Enums

CooldownBucketType

Defines how are command cooldowns applied.

ModuleLifespan

Defines lifespan of a command module.

RoleCheckMode

Specifies how RequireRolesAttribute checks for roles.