2023-04-14 16:52:56 -04:00
|
|
|
import { interactionTypes } from '../structures/interactions/interactionTypes.js';
|
2023-04-01 21:49:27 -04:00
|
|
|
import { Interaction } from '../structures/types.js';
|
2023-03-20 12:45:20 -04:00
|
|
|
const delay = ms => new Promise(resolve => setTimeout(resolve, ms));
|
|
|
|
|
|
2023-04-01 21:49:27 -04:00
|
|
|
/** @param {Interaction} interaction */
|
|
|
|
|
export default async (interaction) => {
|
2023-04-14 16:52:56 -04:00
|
|
|
if (interaction.type == interactionTypes.ApplicationCommand) {
|
|
|
|
|
console.log(interaction.data);
|
|
|
|
|
interaction.reply({content: "HELLO WORLD", ephemeral: true});
|
|
|
|
|
await delay(3000);
|
|
|
|
|
interaction.update({content: "NOOOOOOOOOOOOOOOOOO"});
|
|
|
|
|
await delay(2000);
|
|
|
|
|
const response = await interaction.followUp("followup!");
|
|
|
|
|
await delay(2000);
|
|
|
|
|
response.delete();
|
|
|
|
|
} else {
|
|
|
|
|
console.log(interaction);
|
|
|
|
|
}
|
2023-03-20 12:45:20 -04:00
|
|
|
}
|