Skip to content

Commit

Permalink
fix(guild#createRole): incorrect guild reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Lewdcario committed Jan 16, 2018
1 parent c4b1be8 commit 932980e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/rest/RESTMethods.js
Expand Up @@ -260,7 +260,7 @@ class RESTMethods {
if (allow instanceof Array) allow = Permissions.resolve(allow);
if (deny instanceof Array) deny = Permissions.resolve(deny);

const role = this.client.resolver.resolveRole(this, overwrite.id);
const role = this.client.resolver.resolveRole(guild, overwrite.id);
if (role) {
overwrite.id = role.id;
overwrite.type = 'role';
Expand Down

0 comments on commit 932980e

Please sign in to comment.