From 8930854ed6f6c34a35cb2100196f1b67aeef3a3c Mon Sep 17 00:00:00 2001 From: jakubmanczak Date: Mon, 20 Feb 2023 18:48:50 +0100 Subject: [PATCH] add /kiss command --- src/commands/kiss.ts | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/commands/kiss.ts diff --git a/src/commands/kiss.ts b/src/commands/kiss.ts new file mode 100644 index 0000000..083ae3a --- /dev/null +++ b/src/commands/kiss.ts @@ -0,0 +1,37 @@ +import { ApplicationCommandOptionType } from 'discord.js'; +import { EmbedBuilder } from 'discord.js'; +import { Command } from '../structures/Command'; + +export default new Command({ + name: 'kiss', + description: 'kiss somebody', + options: [ + { + type: ApplicationCommandOptionType.User, + name: 'target', + description: 'the user to kiss', + required: true, + }, + ], + run: async ({ interaction, args }) => { + const kissEmbed = new EmbedBuilder() + .setColor('LuminousVividPink') + .setTitle( + `${interaction.user.username} kissed ${ + args.getUser('target')?.username + } :)` + ) + .setImage( + 'https://media.tenor.com/aXjYu-OWsa8AAAAd/renko-usami-touhou.gif' + ); + interaction.followUp({ embeds: [kissEmbed] }); + interaction.channel?.send(`${args.getUser('target')}`); + // interaction.channel?.send(`${args.getUser('target')}` || 'an invalid user'); + // interaction.followUp( + // `${interaction.user.username} kissed ${args.getUser('target')} :)` + // ); + // interaction.channel?.send( + // 'https://tenor.com/view/renko-usami-touhou-maribel-hearn-gif-22032279' + // ); + }, +});