Skip to content
Advertisement

discord.js problem: How can I implement a command that will only allow people with the kick and administrator permission to use the command

I used this command for kicks, but everyone in the server can now kick. I just want to add something that will only allow people with the admin and kick permissions to use it.

JavaScript

Advertisement

Answer

You have to implement something like

JavaScript

at the beginning of your kick command code.

Advertisement