We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e68b7a commit 46aa608Copy full SHA for 46aa608
discord/guild.py
@@ -1672,6 +1672,7 @@ async def create_category(
1672
overwrites: dict[Role | Member, PermissionOverwrite] = MISSING,
1673
reason: str | None = None,
1674
position: int = MISSING,
1675
+ nsfw: bool = MISSING,
1676
) -> CategoryChannel:
1677
"""|coro|
1678
@@ -1699,7 +1700,10 @@ async def create_category(
1699
1700
options: dict[str, Any] = {}
1701
if position is not MISSING:
1702
options["position"] = position
-
1703
+
1704
+ if nsfw is not MISSING:
1705
+ options["nsfw"] = nsfw
1706
1707
data = await self._create_channel(
1708
name,
1709
overwrites=overwrites,
0 commit comments