mirror of
https://github.com/yourWaifu/sleepy-discord.git
synced 2025-12-16 18:24:12 -06:00
Add t to onDispatch
This commit is contained in:
@@ -635,7 +635,6 @@ namespace SleepyDiscord {
|
||||
virtual void onMessage (Message message );
|
||||
virtual void onServer (Server server );
|
||||
virtual void onChannel (Channel channel );
|
||||
virtual void onDispatch (const json::Value& jsonMessage);
|
||||
virtual void onInteraction (Interaction interaction) {}
|
||||
virtual void onAppCommand (AppCommand appCommand ) {}
|
||||
virtual void onEditAppCommand (AppCommand appCommand ) {}
|
||||
@@ -644,6 +643,7 @@ namespace SleepyDiscord {
|
||||
virtual void onDeleteStageInstance(StageInstance instance ) {}
|
||||
virtual void onEditStageInstance (StageInstance instance ) {}
|
||||
virtual void onUnknownEvent (std::string name, const json::Value& data); //for extending old library versions
|
||||
virtual void onDispatch (const json::Value& t, json::Value& d) {}
|
||||
|
||||
//websocket stuff
|
||||
virtual void onHeartbeat();
|
||||
|
||||
@@ -700,7 +700,7 @@ namespace SleepyDiscord {
|
||||
onUnknownEvent(json::toStdString(t), d);
|
||||
break;
|
||||
}
|
||||
onDispatch(d);
|
||||
onDispatch(t, d);
|
||||
}
|
||||
|
||||
void BaseDiscordClient::processMessage(const WebSocketMessage message) {
|
||||
|
||||
@@ -144,10 +144,6 @@ namespace SleepyDiscord {
|
||||
|
||||
}
|
||||
|
||||
void BaseDiscordClient::onDispatch(const json::Value& jsonMessage) {
|
||||
|
||||
}
|
||||
|
||||
void BaseDiscordClient::onInvaldSession() {
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user