# OAuthLogin

`interface` in `plugin-oauth` · v0.1.0

<https://seedcord.org/docs/packages/plugin-oauth/0.1.0/interfaces/oauth-login>

What `exchange()` resolves to: who logged in, and what Discord gave back with the tokens.

```ts
interface OAuthLogin
```

## Properties

### guild

```ts
guild: APIGuild | undefined;
```

The server that the bot was added to when the login had the `bot` scope.

### permissions

```ts
permissions: bigint | undefined;
```

The permissions of the bot's own role in `guild` after the login. The visitor can untick permissions
on Discord's screen, so check this before you rely on one.

### scopes

```ts
scopes: OAuthScope[]
```

The scopes Discord granted. It includes scopes that the user approved in an earlier login.

### user

```ts
user: APIUser;
```

### webhook

```ts
webhook: APIWebhook | undefined;
```

The webhook that Discord created when the login had the `webhook.incoming` scope.
