Skip to content

Commit

Permalink
* Fix #94 regarding replies in DMs and group chats.
Browse files Browse the repository at this point in the history
  • Loading branch information
iProgramMC committed May 31, 2024
1 parent a5e0afb commit af98d9d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/discord/DiscordInstance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,9 @@ bool DiscordInstance::SendMessageToCurrentChannel(const std::string& msg, Snowfl
if (replyTo)
{
Json mr;
mr["guild_id"] = m_CurrentGuild;
if (m_CurrentGuild)
mr["guild_id"] = m_CurrentGuild;

mr["channel_id"] = m_CurrentChannel;
mr["message_id"] = replyTo;
j["message_reference"] = mr;
Expand Down

0 comments on commit af98d9d

Please sign in to comment.