Removing unnecceary code
This commit is contained in:
@@ -77,8 +77,13 @@ module.exports = {
|
|||||||
|
|
||||||
if (subcommand === 'reload') {
|
if (subcommand === 'reload') {
|
||||||
|
|
||||||
await interaction.reply({ content: 'In development', ephemeral: true })
|
const { exec } = require('child_process');
|
||||||
return
|
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') {
|
if (subcommand === 'updatemutedrolepermissions') {
|
||||||
|
|
||||||
|
await interaction.reply({ content: 'In development', ephemeral: true })
|
||||||
|
return
|
||||||
|
|
||||||
await interaction.deferReply({ ephemeral: true })
|
await interaction.deferReply({ ephemeral: true })
|
||||||
|
|
||||||
const guild = interaction.guild;
|
const guild = interaction.guild;
|
||||||
|
|||||||
Reference in New Issue
Block a user