Class SocketApplicationCommand
Inheritance
SocketApplicationCommand
Assembly: Discord.Net.WebSocket.dll
Syntax
public class SocketApplicationCommand : SocketEntity<ulong>, IEntity<ulong>, IApplicationCommand, ISnowflakeEntity, IEntity<ulong>, IDeletable
Properties
|
Improve this Doc
View Source
ApplicationId
Declaration
public ulong ApplicationId { get; }
Property Value
|
Improve this Doc
View Source
CreatedAt
Declaration
public DateTimeOffset CreatedAt { get; }
Property Value
Type |
Description |
DateTimeOffset |
|
|
Improve this Doc
View Source
DefaultMemberPermissions
Declaration
public GuildPermissions DefaultMemberPermissions { get; }
Property Value
|
Improve this Doc
View Source
Description
Declaration
public string Description { get; }
Property Value
|
Improve this Doc
View Source
DescriptionLocalizations
Gets the localization dictionary for the description field of this command.
Declaration
public IReadOnlyDictionary<string, string> DescriptionLocalizations { get; }
Property Value
|
Improve this Doc
View Source
DescriptionLocalized
Gets the localized description of this command.
Declaration
public string DescriptionLocalized { get; }
Property Value
Remarks
|
Improve this Doc
View Source
Guild
Gets the guild this command resides in; if this command is a global command then it will return null
Declaration
public SocketGuild Guild { get; }
Property Value
|
Improve this Doc
View Source
IsDefaultPermission
Declaration
public bool IsDefaultPermission { get; }
Property Value
|
Improve this Doc
View Source
IsEnabledInDm
Declaration
public bool IsEnabledInDm { get; }
Property Value
|
Improve this Doc
View Source
IsGlobalCommand
Gets whether or not this command is a global application command.
Declaration
public bool IsGlobalCommand { get; }
Property Value
|
Improve this Doc
View Source
IsNsfw
Declaration
public bool IsNsfw { get; }
Property Value
|
Improve this Doc
View Source
Name
Declaration
public string Name { get; }
Property Value
|
Improve this Doc
View Source
NameLocalizations
Gets the localization dictionary for the name field of this command.
Declaration
public IReadOnlyDictionary<string, string> NameLocalizations { get; }
Property Value
|
Improve this Doc
View Source
NameLocalized
Gets the localized name of this command.
Declaration
public string NameLocalized { get; }
Property Value
Remarks
|
Improve this Doc
View Source
Options
Declaration
public IReadOnlyCollection<SocketApplicationCommandOption> Options { get; }
Property Value
Remarks
|
Improve this Doc
View Source
Type
Gets the type of the command.
Declaration
public ApplicationCommandType Type { get; }
Property Value
Methods
|
Improve this Doc
View Source
DeleteAsync(RequestOptions)
Declaration
public Task DeleteAsync(RequestOptions options = null)
Parameters
Returns
|
Improve this Doc
View Source
ModifyAsync(Action<ApplicationCommandProperties>, RequestOptions)
Declaration
public Task ModifyAsync(Action<ApplicationCommandProperties> func, RequestOptions options = null)
Parameters
Returns
|
Improve this Doc
View Source
ModifyAsync<TArg>(Action<TArg>, RequestOptions)
Declaration
public async Task ModifyAsync<TArg>(Action<TArg> func, RequestOptions options = null)
where TArg : ApplicationCommandProperties
Parameters
Returns
Type Parameters
Implements