ApplicationInstallParameters
Parameters for inviting a bot.
Attributes permissions :
The permissions to invite the bot with.
None
, tuple
of str
Oauth2 scopes to invite the bot with.
Methods
(...)
__new__Creates a new application install parameters.
Parameter | Type | Optional | Keyword only | Description |
---|---|---|---|---|
permissions |
| The permissions to invite the bot with. | ||
scopes |
| Oauth2 scopes to invite the bot with. |
Raises
TypeError
- If a parameter's type is incorrect.
ValueError
- If a parameter's value is incorrect.
()
copyCopies the application install parameters.
Returns
new : instance<type<self>>
(...)
copy_withCopies the application install parameters with the given fields.
Parameter | Type | Optional | Keyword only | Description |
---|---|---|---|---|
permissions |
| The permissions to invite the bot with. | ||
scopes |
| Oauth2 scopes to invite the bot with. |
Returns
new : instance<type<self>>
Raises
TypeError
- If a parameter's type is incorrect.
ValueError
- If a parameter's value is incorrect.
(data)
from_dataCreates a application installation parameters instance from the given data.
Parameter | Type | Description |
---|---|---|
data |
| Application installation parameters data. |
Returns
self : instance<cls>
(...)
to_dataConverts the application install parameters to json serializable object.
Parameter | Type | Optional | Keyword only | Default | Description |
---|---|---|---|---|---|
defaults |
|
| Whether fields with their default value should be included as well. |
Returns
data : dict<str, object>
()
__eq__Returns whether the two application install parameters are equal.
()
__getattr__Drops a rich attribute error.
()
__hash__Returns the application install parameters' hash value.
()
__repr__Returns the application install parameters' representation.