Skip to content

Commit

Permalink
🩹 Allow MediaChannel as slash option.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paillat-dev committed Nov 20, 2024
1 parent 99596cc commit 0b3f756
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions discord/commands/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
CategoryChannel,
DMChannel,
ForumChannel,
MediaChannel,
StageChannel,
TextChannel,
Thread,
Expand Down Expand Up @@ -85,6 +86,7 @@
CategoryChannel: ChannelType.category,
Thread: ChannelType.public_thread,
ForumChannel: ChannelType.forum,
MediaChannel: ChannelType.media,
DMChannel: ChannelType.private,
}

Expand Down
1 change: 1 addition & 0 deletions discord/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -825,6 +825,7 @@ def from_datatype(cls, datatype):
"ThreadOption",
"Thread",
"ForumChannel",
"MediaChannel",
"DMChannel",
]:
return cls.channel
Expand Down

0 comments on commit 0b3f756

Please sign in to comment.