Updated overwritePermissions function

This commit is contained in:
hydrabolt
2015-11-06 20:00:34 +00:00
parent 73e0c1683b
commit 81a8771063
6 changed files with 92 additions and 90 deletions

View File

@@ -13,17 +13,12 @@ a.on("warn", function (m) {
});
var start = Date.now();
a.on("message", function (m) {
console.log("msgmsgmsg");
if (m.content === "$$$") {
a.createServer("pongping", "london").then(function (server) {
a.createChannel(server, "pingpong", "text").then(function (channel) {
a.sendMessage(channel, "$$$").then(function (msg) {
a.leaveServer(msg.channel.server).then(function () {
console.log("!!! " + (Date.now() - start));
});
})["catch"](error);
})["catch"](error);
})["catch"](error);
a.internal.overwritePermissions(m.channel, m.author, {
manageRoles: true
})["catch"](error).then(function () {
return console.log("hihihihihi!");
});
}
});
a.on("userTypingStart", function (user, chan) {