diff options
Diffstat (limited to 'discord')
-rw-r--r-- | discord/discord.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/discord.cpp b/discord/discord.cpp index 1461a74..8f5a1ea 100644 --- a/discord/discord.cpp +++ b/discord/discord.cpp @@ -349,14 +349,14 @@ void DiscordClient::SendChatMessage(const std::string &content, Snowflake channe // @([^@#]{1,32})#(\\d{4}) CreateMessageObject obj; obj.Content = content; - m_http.MakePOST("/channels/" + std::to_string(channel) + "/messages", nlohmann::json(obj).dump(), [](auto &) {}); + m_http.MakePOST("/channels/" + std::to_string(channel) + "/messages", nlohmann::json(obj).dump(), [](auto) {}); } void DiscordClient::SendChatMessage(const std::string &content, Snowflake channel, Snowflake referenced_message) { CreateMessageObject obj; obj.Content = content; obj.MessageReference.emplace().MessageID = referenced_message; - m_http.MakePOST("/channels/" + std::to_string(channel) + "/messages", nlohmann::json(obj).dump(), [](auto &) {}); + m_http.MakePOST("/channels/" + std::to_string(channel) + "/messages", nlohmann::json(obj).dump(), [](auto) {}); } void DiscordClient::DeleteMessage(Snowflake channel_id, Snowflake id) { |