Table of Contents

Namespace DisCatSharp.CommandsNext.Attributes

Classes

AliasesAttribute

Adds aliases to this command or group.

CheckBaseAttribute

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

CommandAttribute

Marks this method as a command.

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.

RequireBoostingAttribute

Defines that usage of this command is restricted to boosters.

RequireBotPermissionsAttribute

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

RequireCertifiedModeratorAttribute

Defines that usage of this command is restricted to discord certified moderators.

RequireCommunityAttribute

Defines that a command is only usable within a community-enabled guild.

RequireDirectMessageAttribute

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

RequireGuildAttribute

Defines that a command is only usable within a guild.

RequireGuildOwnerAttribute

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

RequireMemberVerificationGateAttribute

Defines that a command is only usable within a guild which has enabled the member verification gate.

RequireNsfwAttribute

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

RequireOwnerAttribute

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

RequireOwnerOrIdAttribute

Requires ownership of the bot or a whitelisted id to execute this command.

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.

RequireStaffAttribute

Defines that usage of this command is restricted to discord employees.

RequireUserPermissionsAttribute

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

RequireWelcomeScreenAttribute

Defines that a command is only usable within a guild which has enabled the welcome screen.

Enums

ModuleLifespan

Defines lifespan of a command module.

RoleCheckMode

Specifies how does RequireRolesAttribute check for roles.