> ## Documentation Index
> Fetch the complete documentation index at: https://docs.assistantscenter.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Dashboard Events

> The Dashboard class allows you to listen for events in the Dashboard.

For example, you can know when and what user has logged into the Dashboard and what settings they have changed in Bots.

```js theme={null}
Dashboard.DBDEvents.on(EVENT_TYPE, (data) => {
  //
});
```

## User Logged In

```js theme={null}
Dashboard.DBDEvents.on("userLoggedIn", (data) => {
  //
});
```

### Data Returned

`<DiscordOAuthUserResponse>` Object

## Website Viewed

```js theme={null}
Dashboard.DBDEvents.on("websiteView", (data) => {
  //
});
```

### Data Returned

`<UserSessionObject>` if user is logged in or `{loggedIn: false}` if not.

## Guild Settings Updated

```js theme={null}
Dashboard.DBDEvents.on("guildSettingsUpdated", (data) => {
  //
});
```

## Props

<ParamField path="EVENT_TYPE" type="String" required>
  The event type to listen for.
</ParamField>
