Update discord.cpp

This commit is contained in:
Salanto 2021-05-13 17:07:15 +02:00
parent 53290b0d53
commit ec4e9cc9f2

View File

@ -42,7 +42,7 @@ void Discord::postModcallWebhook(QString name, QString reason, int current_area)
};
jsonArray.append(jsonObject);
json["embeds"] = jsonArray;
if (server->webhook_content != "")
if (!server->webhook_content.isEmpty())
json["content"] = server->webhook_content;
nam->post(request, QJsonDocument(json).toJson());