ChainSword20000
ChainSword20000
DIAdiscord.js - Imagine an app
Created by ChainSword20000 on 10/4/2024 in #djs-questions
Range Error Shard 0 not found
I'm getting a shard 0 not found error on the live bot, but I can't seem to replicate it in my dev environments. the full error is as follows: RangeError: Shard 0 not found at SimpleShardingStrategy.send (/opt/icarus/icarus5.5/node_modules/@discordjs/ws/dist/index.js:1205:13) at WebSocketManager.send (/opt/icarus/icarus5.5/node_modules/@discordjs/ws/dist/index.js:1449:26) at WebSocketShard.send (/opt/icarus/icarus5.5/node_modules/discord.js/src/client/websocket/WebSocketShard.js:227:22) at /opt/icarus/icarus5.5/node_modules/discord.js/src/managers/GuildMemberManager.js:237:24 at new Promise (<anonymous>) at GuildMemberManager._fetchMany (/opt/icarus/icarus5.5/node_modules/discord.js/src/managers/GuildMemberManager.js:235:12) at GuildMemberManager.fetch (/opt/icarus/icarus5.5/node_modules/discord.js/src/managers/GuildMemberManager.js:207:31) at testCakeDays (/opt/icarus/icarus5.5/modules/cake.js:90:55) at Timeout.celebrate [as _onTimeout] (/opt/icarus/icarus5.5/modules/cake.js:11:5) at listOnTimeout (node:internal/timers:573:17) Message Unhandled Rejection the lines around cake.js:90:55 is as follows: const guild = Module.client.guilds.cache.get(u.sf.guildname); const now = u.moment(testDate); if (!guild) return u.errorHandler(new Error("guildname is unavailable???")); const members = testMember ?? await guild.members.fetch().catch(u.noop) ?? guild.members.cache;
10 replies