mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 11:03:30 +01:00
fix(guild#createRole): incorrect guild reference
This commit is contained in:
@@ -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';
|
||||||
|
|||||||
Reference in New Issue
Block a user