timotejroiko / discord.js-light

All the power of discord.js, zero caching. This library modifies discord.js's internal classes and functions in order to give you full control over its caching behaviour.
Apache License 2.0
292 stars 29 forks source link

Kicking people doesn't work #7

Closed ghost closed 4 years ago

timotejroiko commented 4 years ago

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.