---
url: /api/formats/scope/src/functions/resolveInstance.md
---
[pantoken-root](../../../../index.md) / [formats/scope/src](../index.md) / resolveInstance

# Function: resolveInstance()

> **resolveInstance**(`start`): `string`

Beta

The instance that owns `start`, falling back to [DEFAULT\_INSTANCE](../variables/DEFAULT_INSTANCE.md).

Use this to decide whether an event or message is yours before acting on it.

## Parameters

### start

`Element` | `null`

## Returns

`string`
