aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorEl Laggron <[email protected]>2018-06-10 16:51:48 +0200
committerRapptz <[email protected]>2018-08-22 21:06:09 -0400
commit395af228b17929159bbb9a33fee27e5d3a4fa067 (patch)
treebca991827c366294d172f8ece6fe952bfe768d96 /docs
parent[commands] Handle nick mentions in HelpFormatter (diff)
downloaddiscord.py-395af228b17929159bbb9a33fee27e5d3a4fa067.tar.xz
discord.py-395af228b17929159bbb9a33fee27e5d3a4fa067.zip
More informations for the Application info
This adds the rpc_origin, bot_public and bot_require_code_grant attributes
Diffstat (limited to 'docs')
-rw-r--r--docs/api.rst18
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/api.rst b/docs/api.rst
index 109f78f9..b5c4ba88 100644
--- a/docs/api.rst
+++ b/docs/api.rst
@@ -566,6 +566,24 @@ Application Info
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
---------