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

@@ -16,9 +16,11 @@ a.on("message", m => {
"manageRoles"
]
}).then( role => {
a.deleteRole(role).then(() => {
a.reply(m, "deleted!");
})
a.addMemberToRole(m.author, role).then(() => {
a.reply(m, "added!");
}).catch( e => {
console.log(e.stack)
});
}).catch( e => {
console.log(e.stack)
});