mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 01:23:31 +01:00
Fixed bug in resolving members
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user