Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Discord = require('discord.js');
- module.exports.run = async (L, message, arg, cnd) => {
- if (cmd == 'denunciar') {
- const args = message.content.split(" ").slice(1);
- if (message.mentions.users.size == 0) return message.reply('Mencione alguem')
- if (!args.slice(1).join(' ')) return message.reply('Diga o motivo da denuncia! use a!denuncia (usuario) (motivo)')
- var canal = message.guild.channels.find("name", "punições");
- if (!canal) return;
- canal.send({embed: {
- 'title':'Denuncia',
- 'description': args.slice(1).join(' '),
- 'thumbnail': {
- 'url': message.mentions.users.first().avatarURL
- }
- ,'footer': {
- 'text': 'Usuario ' + message.mentions.users.first().username
- },
- 'color': message.member.displayColor
- }})
- message.delete().catch(O_o => { });
- message.reply('Sua denuncia foi enviada com sucesso')
- }
- }
- module.exports.help = {
- name: "denunciar"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement