Class SocketReaction
Represents a WebSocket-based reaction object.
Assembly: Discord.Net.WebSocket.dll​
View Source​
Declaration
public class SocketReaction : IReaction
Properties​
UserId​
Gets the ID of the user who added the reaction.
View Source​
Declaration
public ulong UserId { get; }
User​
Gets the user who added the reaction if possible.
View Source​
Declaration
public Optional<IUser> User { get; }
MessageId​
Gets the ID of the message that has been reacted to.
View Source​
Declaration
public ulong MessageId { get; }
Message​
Gets the message that has been reacted to if possible.
View Source​
Declaration
public Optional<SocketUserMessage> Message { get; }
Channel​
Gets the channel where the reaction takes place in.
View Source​
Declaration
public ISocketMessageChannel Channel { get; }
Emote​
The Discord.IEmote used in the reaction.
View Source​
Declaration
public IEmote Emote { get; }
Methods​
Equals(Object)​
View Source​
Declaration
public override bool Equals(object other)
Returns​
System.Boolean
Parameters​
Type | Name |
---|---|
System.Object | other |
GetHashCode()​
View Source​
Declaration
public override int GetHashCode()
Returns​
System.Int32