Skip to content

Commit

Permalink
fix(RoleManager): bug in #create (#5730)
Browse files Browse the repository at this point in the history
Co-authored-by: ckohen <chaikohen@gmail.com>
  • Loading branch information
abdulrahman1s and ckohen committed Jun 5, 2021
1 parent cbd7f2b commit cf22456
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/managers/RoleManager.js
Expand Up @@ -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)
Expand Down

0 comments on commit cf22456

Please sign in to comment.