How do you kick mentioned people using Discord.js
I'm using No slash command builders just using Client.on(interaction) anyone please inform me how to kick mentioned people
37 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
It's just
<GuildMember>.kick()
, get the member and use thatyeah but how you mention the user to be kicked
as a prompt
i guess?
Wdym?
1 moment
very old format probs
Why use string mentions instead of a user option?
i don't know this is got confusing that's why I'm asking for support
You need to do
<GuildMember>.kick()
this does not work
ive tried
What did you try?
Why use getString though when you can use getMember?
done that to
What does your code look like right now? Whats null?
Remove that object from .getMember
wdym by that?
Remove the object from
.getMember()
you mean the brackets or .options
objects been removed still same issue
Imma go Hit the Hay any useful info please let me know below
-----------------------------------------------------------------------------
Can you show us your command definition? Doesnt matter if you didnt use builders
What do you mean by that
You said you dont use slash command builders
I dont
But you must have defined the slash command somehow
In order to register it
It's a constant Variable
And for it to have options
So show us that
I cant right now I'll have to restart my Laptop but I can tell you how it is
Etc
Its not the most effective but it works fine
But this kick command got me Extremely confused
Yeah thats not helpful at all, I need to see actual code not examples
I'll see what I can do gimme a second
dont question the names
None of those are your kick command
all of them work apart from Banhonk Which is the kick one
Youre making it really hard to help you
Okay well that one doesnt have any options
how do i give it options
I mean I would have recommended using the slash command builders, if you want to do raw JSON its kinda outside the scope of discord.js
I should probably rework the bot for the 3rd time in a row to use slash command builders it might be easier to understand
If you have anything else you can do to help I'm open to suggestions I really need to get some sleep so Thank you for your time! And goodnight