Convert to Typescript
This commit is contained in:
24
src/commands/corrupt.ts
Normal file
24
src/commands/corrupt.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
import { SlashCommandBuilder, ChatInputCommandInteraction } from 'discord.js';
|
||||
|
||||
const CORRUPT_IMAGE =
|
||||
'https://media.discordapp.net/attachments/506852356898422797/717395817626861638/isntthatcorrupt2.PNG';
|
||||
|
||||
// Initialise the command data.
|
||||
export const data = new SlashCommandBuilder()
|
||||
.setName('corrupt')
|
||||
.setDescription(
|
||||
"Returns a powerful quote from Neil Breen's infamous indie film, Pass Thru (2016)."
|
||||
);
|
||||
|
||||
console.log(`Loaded ${data.name} command.`);
|
||||
|
||||
/**
|
||||
* Replies with an image from Neil Breen's Pass Thru (2016).
|
||||
* @param interaction The interaction that triggered the command.
|
||||
* @returns A promise that resolves when the command is finished executing.
|
||||
*/
|
||||
export async function execute(
|
||||
interaction: ChatInputCommandInteraction
|
||||
): Promise<void> {
|
||||
await interaction.reply(CORRUPT_IMAGE);
|
||||
}
|
||||
Reference in New Issue
Block a user