Add check for empty string
This commit is contained in:
parent
20a9112a21
commit
378b21099d
@ -71,6 +71,8 @@ QJsonDocument Discord::constructModcallJson(const QString &f_name, const QString
|
|||||||
{"description", f_reason}
|
{"description", f_reason}
|
||||||
};
|
};
|
||||||
l_array.append(l_object);
|
l_array.append(l_object);
|
||||||
|
|
||||||
|
if (!ConfigManager::discordModcallWebhookContent().isEmpty())
|
||||||
l_json["content"] = ConfigManager::discordModcallWebhookContent();
|
l_json["content"] = ConfigManager::discordModcallWebhookContent();
|
||||||
l_json["embeds"] = l_array;
|
l_json["embeds"] = l_array;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user