mirror of
https://github.com/ION606/custom_discordjs.git
synced 2026-05-14 22:26:54 +00:00
Added Interaction integration
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
const { Interaction } = require('../structures/types');
|
||||
const delay = ms => new Promise(resolve => setTimeout(resolve, ms));
|
||||
|
||||
module.exports = /** @param {Interaction} interaction */ async (interaction) => {
|
||||
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();
|
||||
}
|
||||
Reference in New Issue
Block a user