diff --git a/src/commands/moderation/tempban.js b/src/commands/moderation/tempban.js index 27f740d..092bd55 100644 --- a/src/commands/moderation/tempban.js +++ b/src/commands/moderation/tempban.js @@ -33,7 +33,7 @@ module.exports = async (client, interaction, args) => { inline: true } ] - }, member).then(function () { + }, member).then(async function () { member.ban({ reason: reason }) client.succNormal({ text: "The specified user has been successfully banned and successfully received a notification!", @@ -61,7 +61,7 @@ module.exports = async (client, interaction, args) => { expires, }).save(); - }).catch(function () { + }).catch(async function () { member.ban({ reason: reason }) client.succNormal({ text: "The given user has been successfully banned, but has not received a notification!", @@ -79,4 +79,4 @@ module.exports = async (client, interaction, args) => { }); } - \ No newline at end of file +