CJ_Clippy f342bf9671
Some checks failed
ci / build (push) Failing after 1s
implement record retrying
2024-08-19 20:27:40 -08:00

21 lines
730 B
TypeScript

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}`)
},
})