mustafazeydani
mustafazeydani
DIAdiscord.js - Imagine an app
Created by mustafazeydani on 8/9/2024 in #djs-questions
Bot's role hierarchy position problem
So apparently in order to allow a bot to add a role to a user, the bot's role position should be above the role you are trying to assign to the user or else you will get a Missing Permissions error. Is there a way to programmatically place the bot's role in the highest position in the server's role hierarchy? I tried using the setPosition method but nothing seems to work
3 replies