mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00:00
fix(guild#createRole): incorrect guild reference
This commit is contained in:
parent
c4b1be8506
commit
932980e91f
1 changed files with 1 additions and 1 deletions
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Reference in a new issue