2022-12-06 21:06:39 -06:00
|
|
|
const { ApplicationCommandOptionType } = require('discord.js');
|
2022-04-21 20:53:03 -05:00
|
|
|
|
2021-02-23 00:18:07 -06:00
|
|
|
module.exports = {
|
2022-04-18 11:25:40 -05:00
|
|
|
|
|
|
|
name: require('path').parse(__filename).name,
|
2022-04-21 20:53:03 -05:00
|
|
|
description: 'Cheese a user, or run with no arguments for a surprise :eyes:',
|
|
|
|
options: [{
|
|
|
|
name: 'user',
|
|
|
|
description: 'The user to cheese',
|
|
|
|
required: false,
|
2022-12-06 21:06:39 -06:00
|
|
|
type: ApplicationCommandOptionType.User
|
2022-04-21 20:53:03 -05:00
|
|
|
}],
|
2022-04-18 11:25:40 -05:00
|
|
|
|
2022-04-21 23:44:02 -05:00
|
|
|
async parseMessage (client, config, message) {
|
|
|
|
await message.channel.send(this.handle(client, config, message.author, message.mentions.users.first()));
|
|
|
|
},
|
2022-04-21 18:09:21 -05:00
|
|
|
|
2022-04-21 23:44:02 -05:00
|
|
|
async parseInteraction (client, config, interaction) {
|
|
|
|
await interaction.reply(this.handle(client, config, interaction.user, interaction.options.getUser('user')));
|
|
|
|
},
|
|
|
|
|
|
|
|
handle (_, config, user, target) {
|
|
|
|
if (!target) return '*slams cheese on desk*\n**Cheese.** https://www.youtube.com/watch?v=Or4IE8fkpn4';
|
|
|
|
|
|
|
|
return {
|
|
|
|
embeds: [{
|
|
|
|
title: ':cheese: Cheesed',
|
|
|
|
description: `${target} You have been cheesed by ${user}!`,
|
|
|
|
color: 16312092,
|
|
|
|
footer: {
|
|
|
|
icon_url: user.displayAvatarURL(),
|
|
|
|
text: config.footerTxt
|
|
|
|
},
|
|
|
|
image: {
|
|
|
|
url: 'https://cdn.discordapp.com/attachments/803658122299572255/812867714368536636/R06325af354168febcafd96b8328b7590.png'
|
|
|
|
}
|
|
|
|
}]
|
|
|
|
};
|
2022-03-26 03:33:18 -05:00
|
|
|
}
|
2022-04-21 18:09:21 -05:00
|
|
|
};
|