pushing fixes

This commit is contained in:
Skillz
2020-05-10 17:53:15 -04:00
parent 8a86aaad9f
commit e082eedb6a
2 changed files with 2 additions and 1 deletions

View File

@@ -32,6 +32,7 @@ export const createClient = async (data: ClientOptions) => {
botID = data.botID;
token = data.token;
if (data.eventHandlers) eventHandlers = data.eventHandlers;
console.log("starting", eventHandlers);
authorization = `Bot ${data.token}`;
// Initial API connection to get info about bots connection

View File

@@ -90,7 +90,7 @@ export function handleDiscordPayload(
socket: WebSocket,
resumeInterval: number,
) {
console.log("inside handle discord payloa", data.t);
console.log("inside handle discord payloa", data.t, eventHandlers);
// Update the sequence number if it is present
if (data.s) updatePreviousSequenceNumber(data.s);
eventHandlers.raw?.(data);