I wan't to make my Shards send a message to my test guild when they send a death, reconnecting, disconnected and ready event.
I know I can do it by defining a specific guild using its ID and a channel ID in that guild, but how can this be achieved?
I have no idea and I need your help.
Something like this should do the job
client.shard.broadcastEval(`this.channels.cache.get("${channelId}")?.send("${message}")`)
https://discord.js.org/#/docs/main/stable/class/ShardClientUtil?scrollTo=broadcastEval
2.1m questions
2.1m answers
60 comments
57.0k users