2020-03-02 19:38:42 +00:00
|
|
|
module.exports = {
|
|
|
|
name: 'bug',
|
|
|
|
alias: 'none',
|
|
|
|
usage: '',
|
|
|
|
description: 'Report a bug',
|
|
|
|
permission: 'none',
|
|
|
|
category: 'info',
|
|
|
|
async execute(msg, args, client, Discord, prefix) {
|
2020-03-08 14:22:00 +00:00
|
|
|
|
|
|
|
let developers = "";
|
|
|
|
let user = "";
|
|
|
|
for(i = 0; i < client.config.devId.length; i++){
|
|
|
|
user = await client.users.fetch(client.config.devId[i]);
|
|
|
|
if(i == client.config.devId.length-1){
|
|
|
|
developers += user.tag;
|
|
|
|
} else {
|
|
|
|
developers += user.tag + " & ";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-03-02 19:38:42 +00:00
|
|
|
const embed = new Discord.MessageEmbed()
|
|
|
|
.setTitle(`Found a bug with ${client.user.username}?\nDM the core developer:`)
|
2020-03-08 14:22:00 +00:00
|
|
|
.setDescription(`${developers}\nOr join the support server: ${client.config.supportGuild}`)
|
2020-03-02 19:38:42 +00:00
|
|
|
.setColor(client.config.embedColor);
|
|
|
|
msg.channel.send(embed);
|
|
|
|
},
|
2020-03-08 14:22:00 +00:00
|
|
|
};
|