This commit is contained in:
Daniel Odendahl Jr
2018-01-24 12:14:46 +00:00
parent 8154eb3663
commit 1a7752d250
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ module.exports = class UnsubscribeCommand extends Command {
if (!HOME_GUILD_ROLES.split(',').includes(role.id)) return msg.reply('This role is not open!');
if (!role.editable) return msg.reply('I do not have permission to manage this role!');
if (!msg.member.roles.has(role.id)) return msg.reply('You are not a member of this role!');
await msg.member.removeRole(role);
await msg.member.roles.remove(role);
return msg.say(`You were removed from **${role.name}**...`);
}
};