aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/api.rst26
1 files changed, 25 insertions, 1 deletions
diff --git a/docs/api.rst b/docs/api.rst
index 4700a3ba..21ffabaa 100644
--- a/docs/api.rst
+++ b/docs/api.rst
@@ -31,7 +31,6 @@ There are two main ways to query version information about the library.
A string representation of the version. e.g. ``'0.10.0-alpha0'``.
-
Client
-------
@@ -345,6 +344,31 @@ Utility Functions
.. autofunction:: discord.utils.oauth_url
+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.
+
.. _discord-api-enums:
Enumerations