Removed middleware from command
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
const libUtils = require("../libUtils.js");
|
||||
const discordAuth = require("../utilities/discordAuthorization");
|
||||
const discordAuth = require("../middleware/discordAuthorization");
|
||||
const { SlashCommandBuilder } = require('discord.js');
|
||||
|
||||
module.exports = {
|
||||
@@ -10,11 +10,9 @@ module.exports = {
|
||||
isPrivileged: true,
|
||||
async execute(interaction) {
|
||||
// TODO - Need to add middleware for admins
|
||||
discordAuth.authorizeCommand(interaction, this.data.name, async () => {
|
||||
await interaction.reply(
|
||||
`Goodbye world - Disconnection imminent.`
|
||||
);
|
||||
libUtils.runAfter(process.exit, 5000);
|
||||
})
|
||||
await interaction.reply(
|
||||
`Goodbye world - Disconnection imminent.`
|
||||
);
|
||||
libUtils.runAfter(process.exit, 5000);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user