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