# 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="applicationbot" %}
[applicationbot](applicationbot)
{% endcontent-ref %}

### Delete

Deletes the app.
