Removing unnecceary code
This commit is contained in:
@@ -77,8 +77,13 @@ module.exports = {
|
||||
|
||||
if (subcommand === 'reload') {
|
||||
|
||||
await interaction.reply({ content: 'In development', ephemeral: true })
|
||||
return
|
||||
const { exec } = require('child_process');
|
||||
exec('pm2 restart 0', async (err, stdout, stderr) => {
|
||||
if (err) {
|
||||
await interaction.reply({ content: 'Error while reloading: ' + err, ephemeral: true })
|
||||
}
|
||||
await interaction.reply({ content: 'Reloading...', ephemeral: true })
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
@@ -135,6 +140,9 @@ module.exports = {
|
||||
|
||||
if (subcommand === 'updatemutedrolepermissions') {
|
||||
|
||||
await interaction.reply({ content: 'In development', ephemeral: true })
|
||||
return
|
||||
|
||||
await interaction.deferReply({ ephemeral: true })
|
||||
|
||||
const guild = interaction.guild;
|
||||
|
||||
Reference in New Issue
Block a user