#its a method
1 messages · Page 1 of 1 (latest)
if (!member.kickable()) {
message.reply('I cannot kick this user!')
}
this should work?
hm i dont think so?
nvm I was wrong
<GuildMember>.kickable is a property man
const member = message.mentions.members.first() || message.guild.members.cache.get(args[0])
this is my member
ok 👍
so good?
it says:
if (!member.kickable()) {
^
TypeError: Cannot read properties of undefined (reading 'kickable')
you could fetch the member instead of getting it from cache if you dont know if the member is cached or no
yeah but all in all it should tell me if the member is kickable