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