Browse Source

Fix documentation to work.

pull/447/head
Rapptz 8 years ago
parent
commit
9c000c5a72
  1. 14
      discord/guild.py
  2. 30
      docs/api.rst

14
discord/guild.py

@ -47,17 +47,17 @@ class Guild(Hashable):
Supported Operations: Supported Operations:
+-----------+--------------------------------------+ +-----------+-------------------------------------+
| Operation | Description | | Operation | Description |
+===========+======================================+ +===========+=====================================+
| x == y | Checks if two guilds are equal. | | x == y | Checks if two guilds are equal. |
+-----------+--------------------------------------+ +-----------+-------------------------------------+
| x != y | Checks if two guilds are not equal. | | x != y | Checks if two guilds are not equal. |
+-----------+--------------------------------------+ +-----------+-------------------------------------+
| hash(x) | Returns the guild's hash. | | hash(x) | Returns the guild's hash. |
+-----------+--------------------------------------+ +-----------+-------------------------------------+
| str(x) | Returns the guild's name. | | str(x) | Returns the guild's name. |
+-----------+--------------------------------------+ +-----------+-------------------------------------+
Attributes Attributes
---------- ----------

30
docs/api.rst

@ -724,17 +724,35 @@ PermissionOverwrite
.. autoclass:: PermissionOverwrite .. autoclass:: PermissionOverwrite
:members: :members:
Channel
~~~~~~~~
.. autoclass:: Channel TextChannel
~~~~~~~~~~~~
.. autoclass:: TextChannel
:members:
:inherited-members:
VoiceChannel
~~~~~~~~~~~~~
.. autoclass:: VoiceChannel
:members: :members:
:inherited-members:
PrivateChannel DMChannel
~~~~~~~~~~~~~~~ ~~~~~~~~~
.. autoclass:: DMChannel
:members:
:inherited-members:
.. autoclass:: PrivateChannel GroupChannel
~~~~~~~~~~~~
.. autoclass:: GroupChannel
:members: :members:
:inherited-members:
Invite Invite
~~~~~~~ ~~~~~~~

Loading…
Cancel
Save