timotejroiko/discord.js-light

Kicking people doesn't work

Closed this issue · 1 comments

Kicking people doesn't work

hey there,
which version are you using? If v3, which client options are you using?
Checking permissions requires roles to be cached (cacheRoles:true in v3).
Also, instead of getting the target user and then converting it to a member, get the member directly from the message (message.mentions.members.first()) otherwise it will try to look for it in the member cache and likely not find it.