mirror of
https://github.com/danbulant/discord.js
synced 2026-07-09 05:00:48 +00:00
Reformat code
This commit is contained in:
parent
685d08ffa5
commit
a3b2f9c2d4
2 changed files with 20 additions and 17 deletions
|
|
@ -33,6 +33,9 @@ mybot.on("message", function (message) {
|
||||||
this.createRole(message.channel.server).catch(error).then((data) => {
|
this.createRole(message.channel.server).catch(error).then((data) => {
|
||||||
data.manageRoles = true;
|
data.manageRoles = true;
|
||||||
mybot.reply(message, JSON.stringify(data.serialise(), null, 4));
|
mybot.reply(message, JSON.stringify(data.serialise(), null, 4));
|
||||||
|
|
||||||
|
mybot.updateRole(message.channel.server, data).catch(error).then(console.log)
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue