From f4e01b3a9289b294ad559263fed0826c111700b2 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sat, 20 May 2017 02:08:34 -0400 Subject: Make supported operations stand out more than attributes. --- discord/channel.py | 72 ++++++++++++++++++++++++++++++------------------------ 1 file changed, 40 insertions(+), 32 deletions(-) (limited to 'discord/channel.py') diff --git a/discord/channel.py b/discord/channel.py index bf017545..9a0489bc 100644 --- a/discord/channel.py +++ b/discord/channel.py @@ -44,21 +44,23 @@ def _single_delete_strategy(messages, *, reason): class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable): """Represents a Discord guild text channel. - .. describe:: x == y + .. container:: operations - Checks if two channels are equal. + .. describe:: x == y - .. describe:: x != y + Checks if two channels are equal. - Checks if two channels are not equal. + .. describe:: x != y - .. describe:: hash(x) + Checks if two channels are not equal. - Returns the channel's hash. + .. describe:: hash(x) - .. describe:: str(x) + Returns the channel's hash. - Returns the channel's name. + .. describe:: str(x) + + Returns the channel's name. Attributes ----------- @@ -302,21 +304,23 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable): class VoiceChannel(discord.abc.Connectable, discord.abc.GuildChannel, Hashable): """Represents a Discord guild voice channel. - .. describe:: x == y + .. container:: operations + + .. describe:: x == y - Checks if two channels are equal. + Checks if two channels are equal. - .. describe:: x != y + .. describe:: x != y - Checks if two channels are not equal. + Checks if two channels are not equal. - .. describe:: hash(x) + .. describe:: hash(x) - Returns the channel's hash. + Returns the channel's hash. - .. describe:: str(x) + .. describe:: str(x) - Returns the channel's name. + Returns the channel's name. Attributes ----------- @@ -414,21 +418,23 @@ class VoiceChannel(discord.abc.Connectable, discord.abc.GuildChannel, Hashable): class DMChannel(discord.abc.Messageable, Hashable): """Represents a Discord direct message channel. - .. describe:: x == y + .. container:: operations - Checks if two channels are equal. + .. describe:: x == y - .. describe:: x != y + Checks if two channels are equal. - Checks if two channels are not equal. + .. describe:: x != y - .. describe:: hash(x) + Checks if two channels are not equal. - Returns the channel's hash. + .. describe:: hash(x) - .. describe:: str(x) + Returns the channel's hash. - Returns a string representation of the channel + .. describe:: str(x) + + Returns a string representation of the channel Attributes ---------- @@ -495,21 +501,23 @@ class DMChannel(discord.abc.Messageable, Hashable): class GroupChannel(discord.abc.Messageable, Hashable): """Represents a Discord group channel. - .. describe:: x == y + .. container:: operations + + .. describe:: x == y - Checks if two channels are equal. + Checks if two channels are equal. - .. describe:: x != y + .. describe:: x != y - Checks if two channels are not equal. + Checks if two channels are not equal. - .. describe:: hash(x) + .. describe:: hash(x) - Returns the channel's hash. + Returns the channel's hash. - .. describe:: str(x) + .. describe:: str(x) - Returns a string representation of the channel + Returns a string representation of the channel Attributes ---------- -- cgit v1.2.3