ddt
ddt
DIAdiscord.js - Imagine an app
Created by ddt on 11/9/2023 in #djs-questions
permissions in channel
Here when checking permissions for a specific role in channel, if the role has Administrator whatever his permission is, i got true How can i got the correct permission if the role has Administrator or not
permissions = channel.permissionsFor("role_id");
if (permissions.has("ManageChannels")) {
// ..
}
permissions = channel.permissionsFor("role_id");
if (permissions.has("ManageChannels")) {
// ..
}
10 replies