Skip to content

Commit

Permalink
1.11.1
Browse files Browse the repository at this point in the history
  • Loading branch information
DonovanDMC committed Jul 20, 2024
1 parent 3e98a3f commit b146b3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/dispatch.js → examples/dispatcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit b146b3c

Please sign in to comment.