2022-04-21 20:53:03 -05:00
|
|
|
const { Constants } = require('discord.js');
|
|
|
|
|
2021-01-19 14:02:09 -06:00
|
|
|
module.exports = {
|
2022-04-21 18:09:21 -05:00
|
|
|
|
2022-04-18 11:25:40 -05:00
|
|
|
name: require('path').parse(__filename).name,
|
2022-04-21 18:09:21 -05:00
|
|
|
description: 'Bonks a user!',
|
2022-04-21 20:53:03 -05:00
|
|
|
options: [{
|
|
|
|
name: 'user',
|
|
|
|
description: 'The user to bonk',
|
|
|
|
required: true,
|
|
|
|
type: Constants.ApplicationCommandOptionTypes.USER
|
|
|
|
}],
|
2022-04-18 11:25:40 -05:00
|
|
|
|
2022-04-21 18:09:21 -05:00
|
|
|
async execute (client, message, _, config) {
|
2022-03-26 03:33:18 -05:00
|
|
|
const taggedUser = message.mentions.users.first();
|
2022-04-21 12:24:12 -05:00
|
|
|
const avatarURL = message.author.displayAvatarURL();
|
2022-04-21 18:09:21 -05:00
|
|
|
|
|
|
|
if (!taggedUser) {
|
|
|
|
await message.channel.send(client.generateErrorMessage('You need to @mention a user!', avatarURL));
|
2022-03-26 03:33:18 -05:00
|
|
|
} else {
|
2022-04-21 18:09:21 -05:00
|
|
|
await message.channel.send({
|
|
|
|
embeds: [{
|
|
|
|
title: '<a:SylvBonk:801185845847130113> Bonk',
|
|
|
|
description: `${taggedUser} You have been bonked by ${message.author}!`,
|
|
|
|
color: 9442302,
|
|
|
|
footer: {
|
|
|
|
icon_url: avatarURL,
|
|
|
|
text: config.footerTxt
|
|
|
|
},
|
|
|
|
image: {
|
|
|
|
url: 'https://cdn.discordapp.com/attachments/793537380330111028/801194481549312060/HappyBONK.gif'
|
|
|
|
}
|
|
|
|
}]
|
|
|
|
});
|
2021-01-19 17:29:39 -06:00
|
|
|
}
|
2022-03-26 03:33:18 -05:00
|
|
|
}
|
2022-04-21 18:09:21 -05:00
|
|
|
};
|