Table of Contents

Class DiscordApplicationCommand

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

Represents a command that is registered to an application.

public class DiscordApplicationCommand : SnowflakeObject, IEquatable<DiscordApplicationCommand>
Inheritance
DiscordApplicationCommand
Implements
Inherited Members

Constructors

DiscordApplicationCommand(string, string?, IEnumerable<DiscordApplicationCommandOption>?, ApplicationCommandType, DiscordApplicationCommandLocalization?, DiscordApplicationCommandLocalization?, Permissions?, bool?, bool, List<InteractionContextType>?, List<ApplicationCommandIntegrationTypes>?)

Creates a new instance of a DiscordApplicationCommand.

Properties

AllowedContexts

Gets where the application command can be used.

ApplicationId

Gets the unique ID of this command's application.

DefaultMemberPermissions

Gets the commands needed permissions.

Description

Gets the description of this command.

DescriptionLocalizations

Gets the description localizations.

DmPermission

Gets whether the command can be used in direct messages.

IntegrationTypes

Gets the application command allowed integration types.

IsNsfw

Gets whether the command is marked as NSFW.

Mention

Gets the mention for this command.

Name

Gets the name of this command.

NameLocalizations

Gets the name localizations.

Options

Gets the potential parameters for this command.

Type

Gets the type of this application command.

Version

Gets the version number for this command.

Methods

Equals(DiscordApplicationCommand)

Checks whether this DiscordApplicationCommand object is equal to another object.

Equals(object)

Determines if a object is equal to the current DiscordApplicationCommand.

GetHashCode()

Gets the hash code for this DiscordApplicationCommand.

Operators

operator ==(DiscordApplicationCommand, DiscordApplicationCommand)

Determines if two DiscordApplicationCommand objects are equal.

operator !=(DiscordApplicationCommand, DiscordApplicationCommand)

Determines if two DiscordApplicationCommand objects are not equal.