Hello I am trying to make a command in discord.js that unbans all banned users however when i execute the ub all command it says unbanned all but doesn't unban anyone,this is my code so far

```
    bot.on('message', message =>{
    const member = message.member; 
    switch(message.content.toLowerCase()){
        case (PREFIX + "ub all"):
    if(member.hasPermission('ADMINISTRATOR')){ 
        async function ubAll(){
        const users = await message.guild.fetchBans()
        for (const user of users.array()) {
        await message.guild.unban(user)
        }
    }
message.reply("Unbanned all users from the server.")
        }
    if(!member.hasPermission('ADMINISTRATOR')){
        message.reply("You do not have enough permissions for this command!")
    }
    }
})

```