Fixed bug in resolving members

This commit is contained in:
hydrabolt
2015-10-26 15:56:57 +00:00
parent 1d3c61333c
commit 5d22124c3d
3 changed files with 34 additions and 21 deletions

View File

@@ -26,12 +26,11 @@ mybot.on("message", function (message) {
user = message.sender;
}
var perms = JSON.stringify(message.channel.permissionsOf(user).serialise(), null, 4);
perms = JSON.parse(perms);
var typea = message.content.split(" ")[1].toUpperCase();
mybot.createRole(
message.channel.server, {
color : Discord.Colors.BLUE,
color : Discord.Colors[typea],
manageRoles : true
}).then((perm) => {
mybot.reply(message, message.sender.server.id)