mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 18:43:31 +01:00
Updated overwritePermissions function
This commit is contained in:
20
src/index.js
20
src/index.js
@@ -7,24 +7,10 @@ a.on("debug", (m) => console.log("[debug]",m));
|
||||
a.on("warn", (m) => console.log("[warn]", m));
|
||||
var start = Date.now();
|
||||
a.on("message", m => {
|
||||
console.log("msgmsgmsg");
|
||||
if(m.content === "$$$"){
|
||||
a.createServer("pongping", "london")
|
||||
.then( server => {
|
||||
a.createChannel(server, "pingpong", "text")
|
||||
.then( channel => {
|
||||
a.sendMessage(channel, "$$$")
|
||||
.then( msg => {
|
||||
a.leaveServer(msg.channel.server)
|
||||
.then(() => {
|
||||
console.log("!!! " + (Date.now() - start));
|
||||
});
|
||||
})
|
||||
.catch(error);
|
||||
})
|
||||
.catch(error);
|
||||
})
|
||||
.catch(error)
|
||||
a.internal.overwritePermissions(m.channel, m.author, {
|
||||
manageRoles : true
|
||||
}).catch(error).then(()=>console.log("hihihihihi!"));
|
||||
}
|
||||
});
|
||||
a.on("userTypingStart", (user, chan) => {
|
||||
|
||||
Reference in New Issue
Block a user