Class RestCommandBaseData<TOption>
Represents the base data tied with the Discord.Rest.RestCommandBase interaction.
Assembly: Discord.Net.Rest.dll​
View Source​
Declaration
public class RestCommandBaseData<TOption> : RestEntity<ulong>, IEntity<ulong>, IApplicationCommandInteractionData, IDiscordInteractionData where TOption : IApplicationCommandInteractionDataOption
Properties​
Name​
Gets the name of this command.
View Source​
Declaration
public string Name { get; }
Options​
Gets a collection of <code data-dev-comment-type="typeparamref" class="typeparamref">TOption</code> received with this interaction.
View Source​
Declaration
public virtual IReadOnlyCollection<TOption> Options { get; }
IApplicationCommandInteractionData.Options​
View Source​
Declaration
IReadOnlyCollection<IApplicationCommandInteractionDataOption> IApplicationCommandInteractionData.Options { get; }