Webpack build for branch master: a652901d60

This commit is contained in:
Travis CI 2017-04-19 16:59:30 +00:00
parent 4d84753609
commit aab1938eb5
2 changed files with 4 additions and 2 deletions

View file

@ -5488,6 +5488,7 @@ class GuildMember {
*/
addRole(role) {
if (!(role instanceof Role)) role = this.guild.roles.get(role);
if (!role) throw new TypeError('Supplied parameter was neither a Role nor a Snowflake.');
return this.client.rest.methods.addMemberRole(this, role);
}
@ -5514,6 +5515,7 @@ class GuildMember {
*/
removeRole(role) {
if (!(role instanceof Role)) role = this.guild.roles.get(role);
if (!role) throw new TypeError('Supplied parameter was neither a Role nor a Snowflake.');
return this.client.rest.methods.removeMemberRole(this, role);
}

File diff suppressed because one or more lines are too long