Please consider providing your Glitch project’s name in your post. Many problems are very difficult to troubleshoot without being able to see the code involved. Users who haven’t been invited to your project won’t be able to edit your code or see the secrets in your .env
file just from your project name.
Alternatively provide some code that gives community members some context around your problem. Use the code formatting tool to make your code easier to read.
Project name : dotgamer
How can i setup my permitions so i can do commands like kick / ban?
- Open the Discord Developer Portal.
- Click on your application.
- Select the OAuth2 section on the left side of your screen.
- Scroll down, click on ‘bot’.
- Select Administrator and the copy the link provided.
- Add the bot to your Discord server and you’re all set! The bot now has permissions to kick and ban.
If you’d like to do this an easier way, create a role on your server with administrator permissions and give it to your bot.
If you want to know how to kick or ban a member, check out the Discord.js Docs.
Thanks,
Im sorry i wasn’t quite explicit.
The bot has the capability the kick but it says i don’t have enough permission.
Also project name is now : clienthub
Can you send a screenshot of your error or paste it?
Hey @DotGamer,
I am sure it has something to do with permissions of the bot user.
Here’s what you can do to eradicate the issue:
- Firstly, kick the bot-user by from the server.
- Secondly, invite it again with sufficient permissions (as @edwrddd mentioned, provide the bot user with the administrator permissions)
- Once you are done, check for any if-else statement that is blocking the execution of the code.
- Restart the bot user!
Thanks and have a nice day
Following Up @chroventer ,
Check that you are not trying to kick user having the higher role than the bot.
1 Like