ApplicationAuthorizedWebhookEventData
in package
Read onlyYes
FinalYes
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
Properties
$guild
public
Guild|null
$guild
= null
$integration_type
public
int|null
$integration_type
= null
$scopes
public
array<string|int, mixed>
$scopes
$user
public
User
$user
Methods
__construct()
public
__construct(User $user, array<string|int, string> $scopes[, int|null $integration_type = null ][, Guild|null $guild = null ]) : mixed
Parameters
- $user : User
-
User who authorized the app.
- $scopes : array<string|int, string>
-
List of scopes the user authorized.
- $integration_type : int|null = null
-
Installation context for the authorization. Either guild (0) if installed to a server or user (1) if installed to a user's account.
- $guild : Guild|null = null
-
Server which app was authorized for (when integration type is 0).