mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix(RoleManager): bug in #create (#5730)
Co-authored-by: ckohen <chaikohen@gmail.com>
This commit is contained in:
@@ -115,7 +115,7 @@ class RoleManager extends BaseManager {
|
||||
create(options = {}) {
|
||||
let { name, color, hoist, permissions, position, mentionable, reason } = options;
|
||||
if (color) color = resolveColor(color);
|
||||
if (permissions) permissions = Permissions.resolve(permissions).toString();
|
||||
if (typeof permissions !== 'undefined') permissions = new Permissions(permissions);
|
||||
|
||||
return this.client.api
|
||||
.guilds(this.guild.id)
|
||||
|
||||
Reference in New Issue
Block a user