Skip to content

Commit f476863

Browse files
authored
fix: correctly work with Permissions.NONE when passed into Guild.create_role (#1421)
* fix: correctly work with Permissions.NONE when passed into Guild.create_role * fix: update permissions arg check in Guild.create to check for missing value explicitly
1 parent 1e3685f commit f476863

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interactions/models/discord/guild.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1457,7 +1457,7 @@ async def create_role(
14571457
if name:
14581458
payload["name"] = name
14591459

1460-
if permissions:
1460+
if permissions is not MISSING and permissions is not None:
14611461
payload["permissions"] = str(int(permissions))
14621462

14631463
if colour := colour or color:

0 commit comments

Comments
 (0)