mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 02:53:31 +01:00
Add createRoleIfNotExists function
This commit is contained in:
@@ -27,7 +27,6 @@ var Member = (function (_User) {
|
||||
|
||||
Member.prototype.addRole = function addRole(role) {
|
||||
if (this.rawRoles.indexOf(role.id) == -1) {
|
||||
console.log("wanted to add", role.id, this.rawRoles.indexOf(role.id));
|
||||
this.rawRoles.push(role.id);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user