mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 19:13:31 +01:00
Updated overwritePermissions function
This commit is contained in:
15
lib/index.js
15
lib/index.js
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user