Added addMemberToRole

This commit is contained in:
hydrabolt
2015-11-05 17:52:21 +00:00
parent e54da00282
commit 164e6b1b7e
6 changed files with 116 additions and 5 deletions

View File

@@ -20,8 +20,10 @@ a.on("message", function (m) {
hoist: true,
permissions: ["manageRoles"]
}).then(function (role) {
a.deleteRole(role).then(function () {
a.reply(m, "deleted!");
a.addMemberToRole(m.author, role).then(function () {
a.reply(m, "added!");
})["catch"](function (e) {
console.log(e.stack);
});
})["catch"](function (e) {
console.log(e.stack);