aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2019-04-08 17:27:18 -0400
committerRapptz <[email protected]>2019-04-08 17:27:31 -0400
commit1da624a8b56b361ba02caafc01be6564471eb9e5 (patch)
treea96867207c0d2b82d8056b94fb437b6a79a85b3a
parentMissing a word in Attachment.save (diff)
downloaddiscord.py-1da624a8b56b361ba02caafc01be6564471eb9e5.tar.xz
discord.py-1da624a8b56b361ba02caafc01be6564471eb9e5.zip
Remove manual documentation for AppInfo
-rw-r--r--discord/appinfo.py7
-rw-r--r--docs/api.rst47
2 files changed, 4 insertions, 50 deletions
diff --git a/discord/appinfo.py b/discord/appinfo.py
index c93113ce..744517ee 100644
--- a/discord/appinfo.py
+++ b/discord/appinfo.py
@@ -39,13 +39,14 @@ class AppInfo:
name: :class:`str`
The application name.
owner: :class:`User`
- The application's owner.
+ The application owner.
icon: Optional[:class:`str`]
- The icon hash.
+ The icon hash, if it exists.
description: Optional[:class:`str`]
The application description.
bot_public: :class:`bool`
- Whether the bot is public.
+ Whether the bot can be invited by anyone or if it is locked
+ to the application owner.
bot_require_code_grant: :class:`bool`
Whether the bot requires the completion of the full oauth2 code
grant flow to join.
diff --git a/docs/api.rst b/docs/api.rst
index 5f1466e5..0058cb93 100644
--- a/docs/api.rst
+++ b/docs/api.rst
@@ -599,53 +599,6 @@ Utility Functions
.. autofunction:: discord.utils.escape_mentions
-Application Info
-------------------
-
-.. class:: AppInfo
-
- A namedtuple representing the bot's application info.
-
- .. attribute:: id
-
- The application's ``client_id``.
- .. attribute:: name
-
- The application's name.
- .. attribute:: description
-
- The application's description
- .. attribute:: icon
-
- The application's icon hash if it exists, ``None`` otherwise.
- .. attribute:: icon_url
-
- A property that retrieves the application's icon URL if it exists.
-
- If it doesn't exist an empty string is returned.
- .. attribute:: owner
-
- The owner of the application. This is a :class:`User` instance
- with the owner's information at the time of the call.
-
- .. attribute:: bot_public
-
- ``True`` if the bot is considered as public, else ``False``.
- Determines if the bot can be invited by anyone or if it is locked
- to the token owner. Correspond to the "Public bot" box in the
- token settings.
-
- .. attribute:: bot_require_code_grant
-
- ``True`` if the bot requires code grant, else ``False``.
- Correspond to the "Bot requires code grant" box in the token
- settings.
-
- .. attribute:: rpc_origins
-
- Returns an array of RPC origin URL strings, if RPC is enabled.
- If RPC isn't enabled, returns ``None``.
-
Profile
---------