Class MessageInteraction<TUser>
Represents a partial Discord.IDiscordInteraction within a message.
Assembly: Discord.Net.Core.dll​
View Source​
Declaration
public class MessageInteraction<TUser> : IMessageInteraction where TUser : IUser
Properties​
Id​
Gets the snowflake id of the interaction.
View Source​
Declaration
public ulong Id { get; }
Type​
Gets the type of the interaction.
View Source​
Declaration
public InteractionType Type { get; }
Name​
Gets the name of the application command used.
View Source​
Declaration
public string Name { get; }
User​
Gets the <code data-dev-comment-type="typeparamref" class="typeparamref">TUser</code> who invoked the interaction.
View Source​
Declaration
public TUser User { get; }
IMessageInteraction.User​
View Source​
Declaration
IUser IMessageInteraction.User { get; }