Skip to content

Commit

Permalink
Fix: Interaction message for components is always null
Browse files Browse the repository at this point in the history
  • Loading branch information
BrammyS committed Sep 30, 2021
1 parent c72c87e commit 220abc3
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using Color_Chan.Discord.Core.Common.Models.Interaction;
using Color_Chan.Discord.Core.Common.Models.Message;
using Color_Chan.Discord.Rest.Models.Guild;
using Color_Chan.Discord.Rest.Models.Message;

namespace Color_Chan.Discord.Rest.Models.Interaction
{
Expand All @@ -21,6 +22,7 @@ public DiscordInteraction(DiscordInteractionData data)
if (data.User is not null) User = new DiscordUser(data.User);
Token = data.Token;
Versions = data.Versions;
if (data.Message is not null) Message = new DiscordMessage(data.Message);
}

/// <inheritdoc />
Expand Down

0 comments on commit 220abc3

Please sign in to comment.