Finishing applications
This commit is contained in:
17
events/buttons/applicationdelete.js
Normal file
17
events/buttons/applicationdelete.js
Normal file
@@ -0,0 +1,17 @@
|
||||
module.exports = {
|
||||
name: 'applicationdelete',
|
||||
description: 'Delete an application channel.',
|
||||
type: 'button',
|
||||
|
||||
async execute(interaction) {
|
||||
|
||||
const channel = interaction.channel;
|
||||
|
||||
await interaction.reply('Application channel will be deleted in 5 seconds');
|
||||
|
||||
setTimeout(async () => {
|
||||
await channel.delete();
|
||||
}, 5000);
|
||||
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user