fill out gateway op enum using internal names

This commit is contained in:
ouwou
2022-03-03 03:01:09 -05:00
parent fc3d0fddd2
commit 17f1289c84
3 changed files with 25 additions and 6 deletions

View File

@@ -1328,7 +1328,7 @@ void DiscordClient::HandleGatewayMessage(std::string str) {
case GatewayOp::InvalidSession: {
HandleGatewayInvalidSession(m);
} break;
case GatewayOp::Event: {
case GatewayOp::Dispatch: {
auto iter = m_event_map.find(m.Type);
if (iter == m_event_map.end()) {
printf("Unknown event %s\n", m.Type.c_str());