mirror of
https://github.com/System-End/Discord-Bot.git
synced 2026-04-19 16:28:26 +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
|
||||
}
|
||||
]
|
||||
}, 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) => {
|
|||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue