Browse Source

Change SocketMessage to SocketUserMessage in MessageComponent

pull/1923/head
quin lynch 4 years ago
parent
commit
5e07d3e39d
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/Discord.Net.WebSocket/Entities/Interaction/Message Components/SocketMessageComponent.cs

+ 2
- 2
src/Discord.Net.WebSocket/Entities/Interaction/Message Components/SocketMessageComponent.cs View File

@@ -23,7 +23,7 @@ namespace Discord.WebSocket
/// <summary>
/// The message that contained the trigger for this interaction.
/// </summary>
public SocketMessage Message { get; private set; }
public SocketUserMessage Message { get; private set; }

internal SocketMessageComponent(DiscordSocketClient client, Model model, ISocketMessageChannel channel)
: base(client, model.Id, channel)
@@ -63,7 +63,7 @@ namespace Discord.WebSocket
else
author = (this.Channel as SocketChannel).GetUser(model.Message.Value.Author.Value.Id);

this.Message = SocketMessage.Create(this.Discord, this.Discord.State, author, this.Channel, model.Message.Value);
this.Message = SocketUserMessage.Create(this.Discord, this.Discord.State, author, this.Channel, model.Message.Value);
}
else
{


Loading…
Cancel
Save