Posts

Showing posts from March 30, 2019

How to send a global message?

Image
0 0 I'm wanting to send a message (in a way as a global announcement to all servers) about important information regarding the bot. In this instance, regarding unplanned downtime. guild.channels.find(t => t.name == 'general').send I think.. is correct coding to find a text-channel with the name #general. (I want to add 'announcements' / 'lounge') as a back-up if #general isn't an option. I have no clue where to start on coding up this command. Any help would be appreciated. BELOW YOU CAN FIND A SEMI-TEMPLATE / IDEA OF WHAT I WANT? some parts of the code are chopped out, this is no way effects below. exports.exec = async (Peepo, message, args) => { // Fires Error message that the command wasn't ran correctly. if (args.length < 1) { return me