memberHasRole, membersWithRole

This commit is contained in:
abalabahaha
2016-01-29 17:02:40 -08:00
parent 2c8747995a
commit ee2172c1d5
8 changed files with 83 additions and 58 deletions

View File

@@ -95,6 +95,10 @@ var User = (function (_Equality) {
return this.client.getChannelLogs.apply(this.client, _UtilArgumentRegulariser.reg(this, arguments));
};
User.prototype.hasRole = function hasRole(role) {
return this.client.memberHasRole.apply(this.client, [this, role]);
};
_createClass(User, [{
key: "avatarURL",
get: function get() {