mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
fix create role bug
This commit is contained in:
+5
-1
@@ -218,7 +218,11 @@ export async function createGuildRole(
|
||||
endpoints.GUILD_ROLES(guild.id),
|
||||
{
|
||||
...options,
|
||||
permissions: options.permissions?.map((perm) => Permissions[perm]),
|
||||
permissions: options.permissions
|
||||
?.reduce((subtotal, perm) => {
|
||||
subtotal |= Permissions[perm];
|
||||
return subtotal;
|
||||
}, 0),
|
||||
reason,
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user