> For the complete documentation index, see [llms.txt](https://ilinked1337.gitbook.io/anarchy/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ilinked1337.gitbook.io/anarchy/documentation/applications/oauth2application.md).

# OAuth2Application

Namespace: Discord

## Properties

| Name              | Description                                                                                                                | Type            |
| ----------------- | -------------------------------------------------------------------------------------------------------------------------- | --------------- |
| Id                | The app's ID                                                                                                               | ulong           |
| Name              | The app's name                                                                                                             | string          |
| Icon              | The app's icon                                                                                                             | DiscordCDNImage |
| Description       | The app's description                                                                                                      | string          |
| Summary           | The app's summary                                                                                                          | string          |
| VerifyKey         | honestly don't know what this is                                                                                           | string          |
| PublicBot         | Whether or not this is a public app                                                                                        | bool            |
| RequiresCodeGrant | Whether or not the app requires a [code grant](https://discord.com/developers/docs/topics/oauth2#authorization-code-grant) | bool            |
| Owner             | The user who created this app                                                                                              | DiscordUser     |
| Bot               | The app's bot (null if there aren't any)                                                                                   | ApplicationBot  |
| RedirectUris      | Redirect url's used when authorizing the app                                                                               | string          |

## Methods

### Update

Updates the object's information.

### Modify

Modifies the application.

#### Parameters

| Name       | Description             | Type                         |
| ---------- | ----------------------- | ---------------------------- |
| properties | What you want to change | DiscordApplicationProperties |

### AddBot

Adds a bot to the application.

#### Returns

{% content-ref url="/pages/-MAFnlywd2ZcjUCV4kYB" %}
[ApplicationBot](/anarchy/documentation/applications/applicationbot.md)
{% endcontent-ref %}

### Delete

Deletes the app.
