Skip to content

Commit

Permalink
Perhaps fixed components being null
Browse files Browse the repository at this point in the history
  • Loading branch information
FeroxFoxxo committed Mar 25, 2024
1 parent f52bfde commit 998ca71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/Bot/Abstractions/Command.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void Properties(MessageProperties msg)
{
msg.Content = content;
msg.Embed = embed;
msg.Components = components;
msg.Components = components ?? new ComponentBuilder().Build();
}

if (Context.Interaction is SocketMessageComponent castInteraction)
Expand Down

0 comments on commit 998ca71

Please sign in to comment.