Class MessageInteraction<TUser>
Represents a partial IDiscordInteraction within a message.
Implements
Namespace: Discord
Assembly: Discord.Net.Core.dll
Syntax
public class MessageInteraction<TUser> : object, IMessageInteraction where TUser : IUser
Type Parameters
Name | Description |
---|---|
TUser | The type of the user. |
Properties
| Improve this Doc View SourceId
Gets the snowflake id of the interaction.
Declaration
public ulong Id { get; }
Property Value
Type | Description |
---|---|
UInt64 |
Name
Gets the name of the application command used.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
String |
Type
Gets the type of the interaction.
Declaration
public InteractionType Type { get; }
Property Value
Type | Description |
---|---|
InteractionType |
User
Gets the TUser
who invoked the interaction.
Declaration
public TUser User { get; }
Property Value
Type | Description |
---|---|
TUser |
Explicit Interface Implementations
| Improve this Doc View SourceIMessageInteraction.User
Declaration
IUser IMessageInteraction.User { get; }
Returns
Type | Description |
---|---|
IUser |