diff options
| author | Rapptz <[email protected]> | 2017-05-20 02:08:34 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-05-20 02:08:34 -0400 |
| commit | f4e01b3a9289b294ad559263fed0826c111700b2 (patch) | |
| tree | b64b3ce601c9f7d1e9be8381e86146686647afce /discord/channel.py | |
| parent | Kill remaining references to discord.Channel in documentation. (diff) | |
| download | discord.py-f4e01b3a9289b294ad559263fed0826c111700b2.tar.xz discord.py-f4e01b3a9289b294ad559263fed0826c111700b2.zip | |
Make supported operations stand out more than attributes.
Diffstat (limited to 'discord/channel.py')
| -rw-r--r-- | discord/channel.py | 72 |
1 files changed, 40 insertions, 32 deletions
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 ---------- |