|
|
@ -44,19 +44,21 @@ def _single_delete_strategy(messages, *, reason): |
|
|
|
class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable): |
|
|
|
"""Represents a Discord guild text channel. |
|
|
|
|
|
|
|
Supported Operations: |
|
|
|
|
|
|
|
+-----------+---------------------------------------+ |
|
|
|
| Operation | Description | |
|
|
|
+===========+=======================================+ |
|
|
|
| x == y | Checks if two channels are equal. | |
|
|
|
+-----------+---------------------------------------+ |
|
|
|
| x != y | Checks if two channels are not equal. | |
|
|
|
+-----------+---------------------------------------+ |
|
|
|
| hash(x) | Returns the channel's hash. | |
|
|
|
+-----------+---------------------------------------+ |
|
|
|
| str(x) | Returns the channel's name. | |
|
|
|
+-----------+---------------------------------------+ |
|
|
|
.. describe:: x == y |
|
|
|
|
|
|
|
Checks if two channels are equal. |
|
|
|
|
|
|
|
.. describe:: x != y |
|
|
|
|
|
|
|
Checks if two channels are not equal. |
|
|
|
|
|
|
|
.. describe:: hash(x) |
|
|
|
|
|
|
|
Returns the channel's hash. |
|
|
|
|
|
|
|
.. describe:: str(x) |
|
|
|
|
|
|
|
Returns the channel's name. |
|
|
|
|
|
|
|
Attributes |
|
|
|
----------- |
|
|
@ -300,19 +302,21 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable): |
|
|
|
class VoiceChannel(discord.abc.Connectable, discord.abc.GuildChannel, Hashable): |
|
|
|
"""Represents a Discord guild voice channel. |
|
|
|
|
|
|
|
Supported Operations: |
|
|
|
.. describe:: x == y |
|
|
|
|
|
|
|
Checks if two channels are equal. |
|
|
|
|
|
|
|
.. describe:: x != y |
|
|
|
|
|
|
|
Checks if two channels are not equal. |
|
|
|
|
|
|
|
.. describe:: hash(x) |
|
|
|
|
|
|
|
Returns the channel's hash. |
|
|
|
|
|
|
|
.. describe:: str(x) |
|
|
|
|
|
|
|
+-----------+---------------------------------------+ |
|
|
|
| Operation | Description | |
|
|
|
+===========+=======================================+ |
|
|
|
| x == y | Checks if two channels are equal. | |
|
|
|
+-----------+---------------------------------------+ |
|
|
|
| x != y | Checks if two channels are not equal. | |
|
|
|
+-----------+---------------------------------------+ |
|
|
|
| hash(x) | Returns the channel's hash. | |
|
|
|
+-----------+---------------------------------------+ |
|
|
|
| str(x) | Returns the channel's name. | |
|
|
|
+-----------+---------------------------------------+ |
|
|
|
Returns the channel's name. |
|
|
|
|
|
|
|
Attributes |
|
|
|
----------- |
|
|
@ -410,19 +414,21 @@ class VoiceChannel(discord.abc.Connectable, discord.abc.GuildChannel, Hashable): |
|
|
|
class DMChannel(discord.abc.Messageable, Hashable): |
|
|
|
"""Represents a Discord direct message channel. |
|
|
|
|
|
|
|
Supported Operations: |
|
|
|
.. describe:: x == y |
|
|
|
|
|
|
|
+-----------+-------------------------------------------------+ |
|
|
|
| Operation | Description | |
|
|
|
+===========+=================================================+ |
|
|
|
| x == y | Checks if two channels are equal. | |
|
|
|
+-----------+-------------------------------------------------+ |
|
|
|
| x != y | Checks if two channels are not equal. | |
|
|
|
+-----------+-------------------------------------------------+ |
|
|
|
| hash(x) | Returns the channel's hash. | |
|
|
|
+-----------+-------------------------------------------------+ |
|
|
|
| str(x) | Returns a string representation of the channel | |
|
|
|
+-----------+-------------------------------------------------+ |
|
|
|
Checks if two channels are equal. |
|
|
|
|
|
|
|
.. describe:: x != y |
|
|
|
|
|
|
|
Checks if two channels are not equal. |
|
|
|
|
|
|
|
.. describe:: hash(x) |
|
|
|
|
|
|
|
Returns the channel's hash. |
|
|
|
|
|
|
|
.. describe:: str(x) |
|
|
|
|
|
|
|
Returns a string representation of the channel |
|
|
|
|
|
|
|
Attributes |
|
|
|
---------- |
|
|
@ -489,19 +495,21 @@ class DMChannel(discord.abc.Messageable, Hashable): |
|
|
|
class GroupChannel(discord.abc.Messageable, Hashable): |
|
|
|
"""Represents a Discord group channel. |
|
|
|
|
|
|
|
Supported Operations: |
|
|
|
|
|
|
|
+-----------+-------------------------------------------------+ |
|
|
|
| Operation | Description | |
|
|
|
+===========+=================================================+ |
|
|
|
| x == y | Checks if two channels are equal. | |
|
|
|
+-----------+-------------------------------------------------+ |
|
|
|
| x != y | Checks if two channels are not equal. | |
|
|
|
+-----------+-------------------------------------------------+ |
|
|
|
| hash(x) | Returns the channel's hash. | |
|
|
|
+-----------+-------------------------------------------------+ |
|
|
|
| str(x) | Returns a string representation of the channel | |
|
|
|
+-----------+-------------------------------------------------+ |
|
|
|
.. describe:: x == y |
|
|
|
|
|
|
|
Checks if two channels are equal. |
|
|
|
|
|
|
|
.. describe:: x != y |
|
|
|
|
|
|
|
Checks if two channels are not equal. |
|
|
|
|
|
|
|
.. describe:: hash(x) |
|
|
|
|
|
|
|
Returns the channel's hash. |
|
|
|
|
|
|
|
.. describe:: str(x) |
|
|
|
|
|
|
|
Returns a string representation of the channel |
|
|
|
|
|
|
|
Attributes |
|
|
|
---------- |
|
|
|