More informations for the Application info

This adds the rpc_origin, bot_public and
bot_require_code_grant attributes
This commit is contained in:
El Laggron
2018-06-10 16:51:48 +02:00
committed by Rapptz
parent 39cb5f30b4
commit 395af228b1
2 changed files with 24 additions and 1 deletions

View File

@ -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
---------