Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacques authored May 21, 2020
1 parent 76ba2d8 commit b6aa85c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions discordclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ void DiscordClient::messageReceived(const QString& message)
m_user.discriminator = payload["d"]["user"]["discriminator"].get<std::string>().c_str();
emit onReady(m_user);
}
else if (eventName == "MESSAGE_CREATE" || eventName == "MESSAGE_UPDATE")
else if (eventName == "MESSAGE_CREATE")
{
User author;
author.id = payload["d"]["author"]["id"].get<std::string>().c_str();
Expand Down Expand Up @@ -133,7 +133,6 @@ void DiscordClient::connectionError(QAbstractSocket::SocketError error)

void DiscordClient::sendHeartbeat()
{
qDebug() << "Heartbeat sent";
nlohmann::json payload;
payload["op"] = static_cast<int>(Constants::Gateway::OpCode::HEARTBEAT);
payload["d"] = m_sequenceNumber;
Expand Down

0 comments on commit b6aa85c

Please sign in to comment.