From 93fa46713a198baf08ab1e760be1adfdcb852c97 Mon Sep 17 00:00:00 2001 From: Michael <8661717+sgtlaggy@users.noreply.github.com> Date: Wed, 23 Sep 2020 00:19:35 -0700 Subject: Fix and add documentation --- discord/channel.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'discord/channel.py') 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): -- cgit v1.2.3