# InteractionDispatcher

`class` in `gateway` · v0.7.5

<https://seedcord.org/docs/packages/gateway/0.7.5/classes/interaction-dispatcher>

```ts
class InteractionDispatcher implements Initializeable, HmrAware
```

## Constructors

### constructor

```ts
InteractionDispatcher(core: Core)
```

Constructs a new instance of the `InteractionDispatcher` class

## Properties

### core

```ts
protected core: Core
```

## Methods

### drain

```ts
public async drain(
    timeoutMs: number
): Promise<void>
```

### init

```ts
public async init(): Promise<void>
```

### onHmr

```ts
public async onHmr(event: HmrUpdateEvent): Promise<void>
```

### stopAccepting

```ts
public stopAccepting(): void
```

### warnUnhandledContextMenuRoutes

```ts
public warnUnhandledContextMenuRoutes(
    leaves: ContextMenuLeaves
): void
```

### warnUnhandledRoutes

```ts
public warnUnhandledRoutes(
    commandLeaves: Iterable<string>
): void
```
