mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 18:43:31 +01:00
Added addMemberToRole
This commit is contained in:
@@ -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)
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user