Skip to content

Commit

Permalink
feat: add Media.hides_media_download_options shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftinv committed Feb 12, 2024
1 parent 60ae8bd commit 042b42e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions disnake/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -4313,6 +4313,15 @@ def type(self) -> Literal[ChannelType.media]:
"""
return ChannelType.media

def hides_media_download_options(self) -> bool:
"""Whether the channel hides the embedded media download options.
This is a shortcut to :attr:`self.flags.hide_media_download_options <ChannelFlags.hide_media_download_options>`.
:return type: :class:`bool`
"""
return self.flags.hide_media_download_options

# if only these parameters are passed, `_move` is called and no channel will be returned
@overload
async def edit(
Expand Down

0 comments on commit 042b42e

Please sign in to comment.