summaryrefslogtreecommitdiff
path: root/src/discord/objects.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/discord/objects.cpp')
-rw-r--r--src/discord/objects.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/discord/objects.cpp b/src/discord/objects.cpp
index 3c9f770..6deaca0 100644
--- a/src/discord/objects.cpp
+++ b/src/discord/objects.cpp
@@ -251,7 +251,7 @@ void to_json(nlohmann::json &j, const IdentifyProperties &m) {
j["referring_domain_current"] = m.ReferringDomainCurrent;
j["release_channel"] = m.ReleaseChannel;
j["client_build_number"] = m.ClientBuildNumber;
- if (m.ClientEventSource == "")
+ if (m.ClientEventSource.empty())
j["client_event_source"] = nullptr;
else
j["client_event_source"] = m.ClientEventSource;
@@ -290,7 +290,7 @@ void to_json(nlohmann::json &j, const CreateMessageObject &m) {
}
void to_json(nlohmann::json &j, const MessageEditObject &m) {
- if (m.Content.size() > 0)
+ if (!m.Content.empty())
j["content"] = m.Content;
// todo EmbedData to_json