mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-20 05:23:31 +01:00
Added adding to roles
This commit is contained in:
@@ -21,6 +21,12 @@ var Member = (function (_User) {
|
||||
this.rawRoles = roles;
|
||||
}
|
||||
|
||||
Member.prototype.addRole = function addRole(role) {
|
||||
if (! ~this.rawRoles.indexOf(role)) {
|
||||
this.rawRoles.push(role);
|
||||
}
|
||||
};
|
||||
|
||||
Member.prototype.permissionsIn = function permissionsIn(channel) {
|
||||
|
||||
if (channel.server.ownerID === this.id) {
|
||||
|
||||
Reference in New Issue
Block a user