6 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by OPhi
Erreur :
Le canal avec l'ID 1203418114402820146 est introuvable.
hi duckI imagine that the given channel isn't on the shard you're trying to access it from
since this is a hard coded id, I'd assume you also happen to know what guild this channel is in, so you can determine what shard it's actually on with
ShardClientUtil.shardIdForGuildId()
then you can use <Client>.shard.broadcastEval()
(specifying the shard
option) to access the channel thereah if the command is out on shard 1 we cannot send a message in a channel of shard 2?
technically you could using the rest client, but the channel object itself wouldn't be cached on other shards, no
ah ok thx