ApplicationInstallParameters

Parameters for inviting a bot.

Attributes

permissions : Permission

The permissions to invite the bot with.

scopes : None, tuple of str

Oauth2 scopes to invite the bot with.

Methods

__new__(...)

Creates a new application install parameters.

ParameterTypeOptionalKeyword onlyDescription
permissions

int, Permission

The permissions to invite the bot with.

scopes

None, iterable of (Oauth2Scope, str)

Oauth2 scopes to invite the bot with.

Raises

TypeError

  • If a parameter's type is incorrect.

ValueError

  • If a parameter's value is incorrect.

copy()

Copies the application install parameters.

Returns

new : instance<type<self>>

copy_with(...)

Copies the application install parameters with the given fields.

ParameterTypeOptionalKeyword onlyDescription
permissions

int, Permission

The permissions to invite the bot with.

scopes

None, iterable of (Oauth2Scope, str)

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.

from_data(data)

Creates a application installation parameters instance from the given data.

ParameterTypeDescription
data

dict<str, object>

Application installation parameters data.

Returns

self : instance<cls>

to_data(...)

Converts the application install parameters to json serializable object.

ParameterTypeOptionalKeyword onlyDefaultDescription
defaults

bool

False

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.