From b146b3c5936822998a27652de0a76272a25ddcb6 Mon Sep 17 00:00:00 2001 From: Donovan Daniels Date: Sat, 20 Jul 2024 10:54:39 -0500 Subject: [PATCH] 1.11.1 --- examples/{dispatch.js => dispatcher.js} | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename examples/{dispatch.js => dispatcher.js} (96%) diff --git a/examples/dispatch.js b/examples/dispatcher.js similarity index 96% rename from examples/dispatch.js rename to examples/dispatcher.js index 7f20f9e1..96a9bd82 100644 --- a/examples/dispatch.js +++ b/examples/dispatcher.js @@ -31,7 +31,7 @@ client.on("typingStart", (channel, user) => { // you can manually register handlers (the data parameter is the raw packet `d` from discord) // you can provide true as the third parameter to replace any existing handlers client.shards.dispatcher.register("MESSAGE_CREATE", (data, shard) => { - console.log("New message on shard #%d:", shard, data); + console.log("New message on shard #%d:", shard.id, data); }); // you can also manually unregister handlers, we provide an object of all defaults for convinence diff --git a/package.json b/package.json index 2595ffa1..bb145642 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "oceanic.js", - "version": "1.11.0", + "version": "1.11.1", "description": "A NodeJS library for interfacing with Discord.", "main": "./dist/lib/index.js", "types": "./dist/lib/index.d.ts",