Added setting permissions

You should just do:

permissionObject.manageRoles = true;

for example rather than messing with setBit.
This commit is contained in:
hydrabolt
2015-10-26 12:16:04 +00:00
parent 15f35e8019
commit e9afa94c32
7 changed files with 47 additions and 7 deletions

View File

@@ -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));
});