mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 09:33:32 +01:00
Refactored static resolvers to Util (#1517)
* ready event will now throw errors properly * ws login rejection fix * moved static resolves to util
This commit is contained in:
@@ -911,7 +911,7 @@ class Guild {
|
||||
* .catch(console.error)
|
||||
*/
|
||||
createRole({ data = {}, reason } = {}) {
|
||||
if (data.color) data.color = this.client.resolver.resolveColor(data.color);
|
||||
if (data.color) data.color = Util.resolveColor(data.color);
|
||||
if (data.permissions) data.permissions = Permissions.resolve(data.permissions);
|
||||
|
||||
return this.client.api.guilds(this.id).roles.post({ data, reason }).then(role =>
|
||||
|
||||
Reference in New Issue
Block a user