[QUOTE = "ARCONIX, post: 1082448, member: 416133"]
Actually, I know it is forbidden. They do it with the DM Announcement. Code at the bottom
Let me state that the code is not mine.
[CODE = javascript] const Discord = require ('discord.js');
exports.run = (client, message, args) => {
if (! message.guild) {
const ozelmesajuyari = new Discord.RichEmbed ()
.setcol is (0x2488e7)
.settimestamp ()
.setAuthor (message.author.username, message.author.avatarURL)
.addField ('Hey What Are You', 'I'm a Server Bot Please Try Me on Your Server.')
return message.author.sendEmbed (private message); }
let message = args.slice (0) .join ('');
if (message.length <1) return message.channel.send ('You must write something');
message.delet A ();
console.log (`Announcement:" $ {message.author.username} # $ {message.author.discriminator} "" $ {message} "`);
const messat = new Discord.RichEmbed ()
.setcol is ('Random')
.setDescription ('' + message + '')
client.users.forEach (u => {
u.sendembed (haberat)
})
message.channel.send (`: white_check_mark: Message succeeded **` + client.guilds.reduce ((a, b) => a + b.memberCount, 0) .toLocaleString () + `** sent to the user. ');
};
exports.conf = {
enabled: true,
guildOnly: true,
aliases: ['announce'],
permLevel: 5
};
exports.help = {
name: 'announce',
description: 'Announce what you want to the boat.',
usage: 'announcement [what you want to announce]'
}; [/ CODE]
[/ QUOTE]
wew bless your hand, thankss