mirror of
https://github.com/ION606/custom_discordjs.git
synced 2026-05-14 22:26:54 +00:00
26 lines
994 B
JavaScript
26 lines
994 B
JavaScript
import { interactionTypes } from '../structures/interactions/interactionTypes.js';
|
|
import { Interaction } from '../structures/types.js';
|
|
const delay = ms => new Promise(resolve => setTimeout(resolve, ms));
|
|
|
|
/** @param {Interaction} interaction */
|
|
export default async (interaction) => {
|
|
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();
|
|
|
|
// interaction.client.commands.set({
|
|
// name: 'none',
|
|
// description: 'eheheheheh'
|
|
// });
|
|
// const delResp = await interaction.client.commands.delete('none');
|
|
// console.log(delResp);
|
|
} else {
|
|
console.log(interaction);
|
|
}
|
|
} |