mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-11-13 11:52:52 +00:00
Use describe instead of tables for supported operations.
This commit is contained in:
@@ -27,19 +27,21 @@ DEALINGS IN THE SOFTWARE.
|
||||
class Game:
|
||||
"""Represents a Discord game.
|
||||
|
||||
Supported Operations:
|
||||
.. describe:: x == y
|
||||
|
||||
+-----------+------------------------------------+
|
||||
| Operation | Description |
|
||||
+===========+====================================+
|
||||
| x == y | Checks if two games are equal. |
|
||||
+-----------+------------------------------------+
|
||||
| x != y | Checks if two games are not equal. |
|
||||
+-----------+------------------------------------+
|
||||
| hash(x) | Return the games's hash. |
|
||||
+-----------+------------------------------------+
|
||||
| str(x) | Returns the games's name. |
|
||||
+-----------+------------------------------------+
|
||||
Checks if two games are equal.
|
||||
|
||||
.. describe:: x != y
|
||||
|
||||
Checks if two games are not equal.
|
||||
|
||||
.. describe:: hash(x)
|
||||
|
||||
Returns the game's hash.
|
||||
|
||||
.. describe:: str(x)
|
||||
|
||||
Returns the game's name.
|
||||
|
||||
Attributes
|
||||
-----------
|
||||
|
||||
Reference in New Issue
Block a user