mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 11:33:30 +01:00
Added setting permissions
You should just do: permissionObject.manageRoles = true; for example rather than messing with setBit.
This commit is contained in:
@@ -31,6 +31,7 @@ mybot.on("message", function (message) {
|
||||
perms = JSON.parse(perms);
|
||||
|
||||
this.createRole(message.channel.server).catch(error).then((data) => {
|
||||
data.manageRoles = true;
|
||||
mybot.reply(message, JSON.stringify(data.serialise(), null, 4));
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user