You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
32 |
33 | switch (mode) {
34 | case 'process':
35 | process.on('message', this._handleMessage.bind(this));
36 | client.on(Events.ShardReady, () => {
37 | process.send({ _ready: true });
^
TypeError: process.send is not a function. (In 'process.send({ _ready: !0 })', 'process.send' is undefined)
at /mnt/c/users/user/documents/gitlab/discord-module/node_modules/discord.js/src/sharding/ShardClientUtil.js:37:10
at emit (node:events:1:4874)
at /mnt/c/users/user/documents/gitlab/discord-module/node_modules/discord.js/src/client/websocket/WebSocketManager.js:199:10
at emit (node:events:1:4324)
at checkReady (/mnt/c/users/user/documents/gitlab/discord-module/node_modules/discord.js/src/client/websocket/WebSocketShard.js:181:6)
at gotGuild (/mnt/c/users/user/documents/gitlab/discord-module/node_modules/discord.js/src/client/websocket/WebSocketShard.js:155:4)
at /mnt/c/users/user/documents/gitlab/discord-module/node_modules/discord.js/src/client/websocket/WebSocketManager.js:241:8
at emit (/mnt/c/users/user/documents/gitlab/discord-module/node_modules/@vladfrangu/async_event_emitter/dist/index.js:282:21)
at emit (/mnt/c/users/user/documents/gitlab/discord-module/node_modules/@vladfrangu/async_event_emitter/dist/index.js:282:21)
at /mnt/c/users/user/documents/gitlab/discord-module/node_modules/@discordjs/ws/dist/index.js:988:8
What is the expected behavior?
The bot starts and functions normally.
What do you see instead?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered:
What version of Bun is running?
0.7.3
What platform is your computer?
Microsoft Windows NT 10.0.22621.0 x64
What steps can reproduce the bug?
Run
tsc -b ./ && bun ./dist/index.js
(building and running from dist because
ShardingManager
requires a .js file, else it errors)index.ts:
error:
What is the expected behavior?
The bot starts and functions normally.
What do you see instead?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: