#Discordeno v19
1 messages ยท Page 1 of 1 (latest)
Have you enabled sharding?
i did bot.start()
there is a bug in discordeno where it is not automatically setting the number of shards
unlike before
where it used to do that earlier
oo okay ๐
@lusty venture did we break lastShardId somehow?
I don't think that should be the cause tho
@tall skiff v19?
Could you give a MRE?
@tall skiff
no the totalShards and lastShardId are broken
const sessionInfo = await bot.rest.getSessionInfo();
console.log(sessionInfo);
bot.gateway.totalShards = sessionInfo.shards;
bot.gateway.lastShardId = sessionInfo.shards - 1;
bot.start();
This is my fix
@tall skiff can u check what broke exactly
From bot.ts in bot package
// @ts-expect-error should this work
if (typeof Deno !== 'undefined') {
// @ts-expect-error should this work
const katsura = await import('https://x.nest.land/[email protected]/src/discordenoFixes/gatewaySocket.ts')
await katsura(bot.gateway)
}
if (!options.gateway?.connection) {
bot.gateway.connection = await bot.rest.getSessionInfo();
//Why is totalShards and lastShardId not updated here?
}
return await bot.gateway.spawnShards()
},
interesting
why was it working before this ๐ค
@tall skiff dfbee47
do u have the error with that commit?
Yea it shouldn't be tbh, really need to see if that commit changes anything at all
Yep odd
yeah, this is not working.
Could you check in this commit @mortal brook
It is wrong, I know
Has it ever worked
doubt it
Cuz it shouldn't
That's why said to try that commit tho
To see if it used to work and broken now
#general message
Should still be the same
That the "thingie" does not work 
That's another commit + idk if it's the same as this connection thing
Uh I wonder if you're mixing 2 issues bere
The message you linked looks like another issue, the one in this is another
