Skip to content

Commit 214b658

Browse files
colinloretzmazylol
authored andcommitted
Webhook event: APPLICATION_DEAUTHORIZED (discord#7599)
* APPLICATION_DEAUTHORIZED * fix link
1 parent 1953393 commit 214b658

File tree

1 file changed

+35
-5
lines changed

1 file changed

+35
-5
lines changed

docs/events/webhook-events.mdx

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,12 @@ The table below includes the different webhook event types your app can subscrib
132132

133133
The "Value" column corresponds to the event's `type` field value in the [event body object](/docs/events/webhook-events#event-body-object).
134134

135-
| Name | Value | Description |
136-
|------------------------------------------------------------------------------|--------------------------|------------------------------------------------------------------------|
137-
| [Application Authorized](/docs/events/webhook-events#application-authorized) | `APPLICATION_AUTHORIZED` | Sent when an app was authorized by a user to a server or their account |
138-
| [Entitlement Create](/docs/events/webhook-events#entitlement-create) | `ENTITLEMENT_CREATE` | Entitlement was created |
139-
| [Quest User Enrollment](/docs/events/webhook-events#quest-user-enrollment) | `QUEST_USER_ENROLLMENT` | User was added to a Quest (currently unavailable) |
135+
| Name | Value | Description |
136+
|----------------------------------------------------------------------------------|----------------------------|------------------------------------------------------------------------|
137+
| [Application Authorized](/docs/events/webhook-events#application-authorized) | `APPLICATION_AUTHORIZED` | Sent when an app was authorized by a user to a server or their account |
138+
| [Application Deauthorized](/docs/events/webhook-events#application-deauthorized) | `APPLICATION_DEAUTHORIZED` | Sent when an app was deauthorized by a user |
139+
| [Entitlement Create](/docs/events/webhook-events#entitlement-create) | `ENTITLEMENT_CREATE` | Entitlement was created |
140+
| [Quest User Enrollment](/docs/events/webhook-events#quest-user-enrollment) | `QUEST_USER_ENROLLMENT` | User was added to a Quest (currently unavailable) |
140141

141142
#### Application Authorized
142143

@@ -175,6 +176,35 @@ The "Value" column corresponds to the event's `type` field value in the [event b
175176
}
176177
```
177178

179+
#### Application Deauthorized
180+
181+
`APPLICATION_DEAUTHORIZED` is sent when the app is deauthorized by a user.
182+
183+
###### Application Deauthorized Structure
184+
185+
| Field | Type | Description |
186+
|-------|----------------------------------------------------------------|-------------------------------|
187+
| user | [user object](/docs/resources/user#user-object-user-structure) | User who deauthorized the app |
188+
189+
###### Application Deauthorized Example
190+
191+
```json
192+
{
193+
"version": 1,
194+
"application_id": "1234560123453231555",
195+
"type": 1,
196+
"event": {
197+
"type": "APPLICATION_DEAUTHORIZED",
198+
"timestamp": "2024-10-18T14:42:53.064834",
199+
"data": {
200+
"user": {
201+
// user data
202+
}
203+
}
204+
}
205+
}
206+
```
207+
178208
#### Entitlement Create
179209

180210
`ENTITLEMENT_CREATE` is sent when an [entitlement](/docs/resources/entitlement) is created when a user purchases or is otherwise granted one of your app's SKUs. Refer to the [Monetization documentation](/docs/monetization/overview) for details.

0 commit comments

Comments
 (0)