#why is this causing an error? toWarn is defined as

1 messages · Page 1 of 1 (latest)

normal topaz
#

I'm pretty sure you can't kick an user. You can only a guild member

mortal horizon
#

getUser returns user but x.kick() needs member

empty wave
#

so how exactly would i get member from it?

mortal horizon
#

lot of possibilities

#

interaction.guild.members.cache.get('id').kick() should be ok

empty wave
#

but can i even get an id from .addUserOption

mortal horizon
#

const toWarn = interaction.options.getUser('user') so toWarn.id i think

empty wave
#

thanks it worked