mirror of
https://github.com/danbulant/discord.js
synced 2026-07-13 07:00:44 +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 (allow instanceof Array) allow = Permissions.resolve(allow);
|
||||||
if (deny instanceof Array) deny = Permissions.resolve(deny);
|
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) {
|
if (role) {
|
||||||
overwrite.id = role.id;
|
overwrite.id = role.id;
|
||||||
overwrite.type = 'role';
|
overwrite.type = 'role';
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue