import { ApplicationCommandTypes, type Interaction } from '@discordeno/bot' import { createCommand } from '../commands.ts' import { bot } from '../bot.ts' createCommand({ name: 'yeah', description: 'Yeah! a message', type: ApplicationCommandTypes.ChatInput, async execute(interaction: Interaction) { // interaction.message.id const message = interaction.message if (!message) return bot.logger.error('interaction.message was missing'); if (!message.id) return bot.logger.error(`interaction.message.id was missing`); interaction.respond('https://futureporn-b2.b-cdn.net/yeah_nobg.png', { isPrivate: true }) bot.logger.info(`Yeah! command successfully ran with message.id=${message.id}`) }, })