Add check for empty string

This commit is contained in:
Salanto 2021-08-19 23:04:23 +02:00
parent 20a9112a21
commit 378b21099d

View File

@ -71,6 +71,8 @@ QJsonDocument Discord::constructModcallJson(const QString &f_name, const QString
{"description", f_reason}
};
l_array.append(l_object);
if (!ConfigManager::discordModcallWebhookContent().isEmpty())
l_json["content"] = ConfigManager::discordModcallWebhookContent();
l_json["embeds"] = l_array;