mirror of
https://github.com/System-End/Discord-Bot.git
synced 2026-04-19 20:55:16 +00:00
Add async for await
This commit is contained in:
parent
75bfe9e5fa
commit
c8415c404d
1 changed files with 3 additions and 3 deletions
|
|
@ -33,7 +33,7 @@ module.exports = async (client, interaction, args) => {
|
||||||
inline: true
|
inline: true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}, member).then(function () {
|
}, member).then(async function () {
|
||||||
member.ban({ reason: reason })
|
member.ban({ reason: reason })
|
||||||
client.succNormal({
|
client.succNormal({
|
||||||
text: "The specified user has been successfully banned and successfully received a notification!",
|
text: "The specified user has been successfully banned and successfully received a notification!",
|
||||||
|
|
@ -61,7 +61,7 @@ module.exports = async (client, interaction, args) => {
|
||||||
expires,
|
expires,
|
||||||
}).save();
|
}).save();
|
||||||
|
|
||||||
}).catch(function () {
|
}).catch(async function () {
|
||||||
member.ban({ reason: reason })
|
member.ban({ reason: reason })
|
||||||
client.succNormal({
|
client.succNormal({
|
||||||
text: "The given user has been successfully banned, but has not received a notification!",
|
text: "The given user has been successfully banned, but has not received a notification!",
|
||||||
|
|
@ -79,4 +79,4 @@ module.exports = async (client, interaction, args) => {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue