aboutsummaryrefslogtreecommitdiff
path: root/discord/channel.py
diff options
context:
space:
mode:
authorMichael <[email protected]>2020-09-23 00:19:35 -0700
committerGitHub <[email protected]>2020-09-23 03:19:35 -0400
commit93fa46713a198baf08ab1e760be1adfdcb852c97 (patch)
treed73bff9c85cc531d992e77a9e01950f7668731b4 /discord/channel.py
parentAdd support for message_reference on Message object (diff)
downloaddiscord.py-93fa46713a198baf08ab1e760be1adfdcb852c97.tar.xz
discord.py-93fa46713a198baf08ab1e760be1adfdcb852c97.zip
Fix and add documentation
Diffstat (limited to 'discord/channel.py')
-rw-r--r--discord/channel.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/discord/channel.py b/discord/channel.py
index c02c00f3..c3ccbe0f 100644
--- a/discord/channel.py
+++ b/discord/channel.py
@@ -158,11 +158,11 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable):
return [m for m in self.guild.members if self.permissions_for(m).read_messages]
def is_nsfw(self):
- """Checks if the channel is NSFW."""
+ """:class:`bool`: Checks if the channel is NSFW."""
return self.nsfw
def is_news(self):
- """Checks if the channel is a news channel."""
+ """:class:`bool`: Checks if the channel is a news channel."""
return self._type == ChannelType.news.value
@property
@@ -757,7 +757,7 @@ class CategoryChannel(discord.abc.GuildChannel, Hashable):
return ChannelType.category
def is_nsfw(self):
- """Checks if the category is NSFW."""
+ """:class:`bool`: Checks if the category is NSFW."""
return self.nsfw
async def clone(self, *, name=None, reason=None):
@@ -933,7 +933,7 @@ class StoreChannel(discord.abc.GuildChannel, Hashable):
permissions_for.__doc__ = discord.abc.GuildChannel.permissions_for.__doc__
def is_nsfw(self):
- """Checks if the channel is NSFW."""
+ """:class:`bool`: Checks if the channel is NSFW."""
return self.nsfw
async def clone(self, *, name=None, reason=None):