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",