Skip to content

Commit

Permalink
Fix context menu comand message type (#2128)
Browse files Browse the repository at this point in the history
  • Loading branch information
d4n3436 committed Mar 2, 2022
1 parent b95b942 commit f601e9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Discord.Net.WebSocket/Entities/Messages/SocketMessage.cs
Expand Up @@ -134,7 +134,8 @@ internal static SocketMessage Create(DiscordSocketClient discord, ClientState st
if (model.Type == MessageType.Default ||
model.Type == MessageType.Reply ||
model.Type == MessageType.ApplicationCommand ||
model.Type == MessageType.ThreadStarterMessage)
model.Type == MessageType.ThreadStarterMessage ||
model.Type == MessageType.ContextMenuCommand)
return SocketUserMessage.Create(discord, state, author, channel, model);
else
return SocketSystemMessage.Create(discord, state, author, channel, model);
Expand Down

0 comments on commit f601e9b

Please sign in to comment.