diff options
| author | Rapptz <[email protected]> | 2017-05-13 18:48:14 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-05-13 18:48:14 -0400 |
| commit | f73eb087c99a0ee73b9a46500225464ab866c625 (patch) | |
| tree | c08643f1aa5add45d95f934422b1fc8fd35b1b33 /discord/game.py | |
| parent | Add Colour.blurple and Colour.greyple. (diff) | |
| download | discord.py-f73eb087c99a0ee73b9a46500225464ab866c625.tar.xz discord.py-f73eb087c99a0ee73b9a46500225464ab866c625.zip | |
Use describe instead of tables for supported operations.
Diffstat (limited to 'discord/game.py')
| -rw-r--r-- | discord/game.py | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/discord/game.py b/discord/game.py index 2cb3587a..6e8ed5cf 100644 --- a/discord/game.py +++ b/discord/game.py @@ -27,19 +27,21 @@ DEALINGS IN THE SOFTWARE. class Game: """Represents a Discord game. - Supported Operations: - - +-----------+------------------------------------+ - | 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. | - +-----------+------------------------------------+ + .. describe:: x == y + + 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 ----------- |