Skip to content

Commit 46aa608

Browse files
authored
Update guild.py
Signed-off-by: Lumabots <[email protected]>
1 parent 6e68b7a commit 46aa608

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

discord/guild.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1672,6 +1672,7 @@ async def create_category(
16721672
overwrites: dict[Role | Member, PermissionOverwrite] = MISSING,
16731673
reason: str | None = None,
16741674
position: int = MISSING,
1675+
nsfw: bool = MISSING,
16751676
) -> CategoryChannel:
16761677
"""|coro|
16771678
@@ -1699,7 +1700,10 @@ async def create_category(
16991700
options: dict[str, Any] = {}
17001701
if position is not MISSING:
17011702
options["position"] = position
1702-
1703+
1704+
if nsfw is not MISSING:
1705+
options["nsfw"] = nsfw
1706+
17031707
data = await self._create_channel(
17041708
name,
17051709
overwrites=overwrites,

0 commit comments

Comments
 (0)