Supplied options is not an object. (ban command discord.js)

const member = message.mentions.members.first()
if (!member) return message.reply('Please specify a member for me to ban them')

const reason = args.slice(1).join(" ");
if (!reason) reason = 'No Reason';

if (!member.bannable) return message.reply('This member is not bannable')

member.ban(reason).then(() => {
  message.channel.send(member + " banned by " + message.author.id)
}).catch(err => console.log(err))

I’m trying to build a Ban Command in discord.js v13, however, when I run this code, I always get this error: Supplied options is not an object.

Unfortunately, the error doesn’t tell me anything else, like which line or something.