mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 19:13:31 +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:
@@ -1,5 +1,6 @@
|
||||
const Snowflake = require('../util/Snowflake');
|
||||
const Permissions = require('../util/Permissions');
|
||||
const Util = require('../util/Util');
|
||||
|
||||
/**
|
||||
* Represents a role on Discord.
|
||||
@@ -205,7 +206,7 @@ class Role {
|
||||
data: {
|
||||
name: data.name || this.name,
|
||||
position: typeof data.position !== 'undefined' ? data.position : this.position,
|
||||
color: this.client.resolver.resolveColor(data.color || this.color),
|
||||
color: Util.resolveColor(data.color || this.color),
|
||||
hoist: typeof data.hoist !== 'undefined' ? data.hoist : this.hoist,
|
||||
mentionable: typeof data.mentionable !== 'undefined' ? data.mentionable : this.mentionable,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user