Skip to content

Commit e717f67

Browse files
authored
Update guild.py
Signed-off-by: Lumabots <[email protected]>
1 parent 477407f commit e717f67

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

discord/guild.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1643,9 +1643,11 @@ async def create_forum_channel(
16431643
)
16441644
elif isinstance(default_reaction_emoji, str):
16451645
default_reaction_emoji = PartialEmoji.from_str(default_reaction_emoji)
1646+
elif default_reaction_emoji is None:
1647+
pass
16461648
else:
16471649
raise InvalidArgument(
1648-
"default_reaction_emoji must be of type: GuildEmoji | int | str"
1650+
"default_reaction_emoji must be of type: GuildEmoji | int | str | None"
16491651
)
16501652

16511653
options["default_reaction_emoji"] = (

0 commit comments

Comments
 (0)