mirror of
https://github.com/discordeno/discordeno.git
synced 2026-05-31 16:00:07 +00:00
pushing fixes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user