Discord's dispatcher described. Too lazy to comment everything.

### Hierarchy

- DispatcherTypes

### Properties

### Methods

## Properties

### _computeOrderedActionHandlers

_computeOrderedActionHandlers: any

- Defined in LightcordApi/src/types/DiscordDispatcherTypes.ts:47

### _computeOrderedCallbackTokens

_computeOrderedCallbackTokens: any

- Defined in LightcordApi/src/types/DiscordDispatcherTypes.ts:48

### _currentDispatchActionType

_currentDispatchActionType: string | null

- Defined in LightcordApi/src/types/DiscordDispatcherTypes.ts:8

### _dependencyGraph

_dependencyGraph: any

- Defined in LightcordApi/src/types/DiscordDispatcherTypes.ts:12

### _invalidateCaches

_invalidateCaches: any

- Defined in LightcordApi/src/types/DiscordDispatcherTypes.ts:45

### _lastID

_lastID: number

- Defined in LightcordApi/src/types/DiscordDispatcherTypes.ts:11

### _orderedActionHandlers

_orderedActionHandlers: any

- Defined in LightcordApi/src/types/DiscordDispatcherTypes.ts:9

### _orderedCallbackTokens

_orderedCallbackTokens: any

- Defined in LightcordApi/src/types/DiscordDispatcherTypes.ts:10

### _processWaitQueue

_processWaitQueue: any

- Defined in LightcordApi/src/types/DiscordDispatcherTypes.ts:46

### _processingWaitQueue

_processingWaitQueue: boolean

- Defined in LightcordApi/src/types/DiscordDispatcherTypes.ts:7

### _subscriptions

_subscriptions: any

- Defined in LightcordApi/src/types/DiscordDispatcherTypes.ts:5

### _waitQueue

_waitQueue: function []

- Defined in LightcordApi/src/types/DiscordDispatcherTypes.ts:6

### addDependencies

addDependencies: any

- Defined in LightcordApi/src/types/DiscordDispatcherTypes.ts:44

## Methods

### _dispatch

- _dispatch(event: object): void

Same as dispatcher.dispatch

#### Parameters

- event: object

  - ##### [k: string]: any

  - ##### type: string

#### Returns void

- Defined in LightcordApi/src/types/DiscordDispatcherTypes.ts:28

### dirtyDispatch

- dirtyDispatch(event: object): void

Wait until the dispatcher finished dispatching, then dispatch

#### Parameters

- event: object

  - ##### [k: string]: any

  - ##### type: string

#### Returns void

- Defined in LightcordApi/src/types/DiscordDispatcherTypes.ts:22

### dispatch

- dispatch(event: object): void

dispatch

#### Parameters

- event: object

  - ##### [k: string]: any

  - ##### type: string

#### Returns void

- Defined in LightcordApi/src/types/DiscordDispatcherTypes.ts:26

### isDispatching

- isDispatching(): boolean

#### Returns boolean

- Defined in LightcordApi/src/types/DiscordDispatcherTypes.ts:14

### maybeDispatch

- maybeDispatch(event: object): void

If the dispatcher isn't dispatching, then dispatch

#### Parameters

- event: object

  - ##### [k: string]: any

  - ##### type: string

#### Returns void

- Defined in LightcordApi/src/types/DiscordDispatcherTypes.ts:18

### register

- register(name: string, actionHandler: any, storeDidChange: any): void

#### Parameters

- name: string
- actionHandler: any
- storeDidChange: any

#### Returns void

- Defined in LightcordApi/src/types/DiscordDispatcherTypes.ts:43

### setInterceptor

- setInterceptor(interceptor: function): void

Intercept events before they happens, if returning true, then the event will be blocked from dispatching.

#### Parameters

- interceptor: function
  - - (event: any): boolean

    - #### Parameters

      - event: any

      #### Returns boolean

#### Returns void

- Defined in LightcordApi/src/types/DiscordDispatcherTypes.ts:32

### subscribe

- subscribe(event: string, listener: function): void

Subscribe to an event

#### Parameters

- event: string
- listener: function
  - - (event: object): void

    - #### Parameters

      - event: object

        - ##### [k: string]: any

        - ##### type: string

      #### Returns void

- Defined in LightcordApi/src/types/DiscordDispatcherTypes.ts:38

### unsubscribe

- unsubscribe(event: string, listener: function): void

Unsubscribe from the event.

#### Parameters

- event: string
- listener: function
  - - (event: object): void

    - #### Parameters

      - event: object

        - ##### [k: string]: any

        - ##### type: string

      #### Returns void

- Defined in LightcordApi/src/types/DiscordDispatcherTypes.ts:42

### wait

- wait(waiting: function): void

Wait until the dispatcher has finished dispatching

#### Parameters

- waiting: function
  - - (): void

    - #### Returns void

- Defined in LightcordApi/src/types/DiscordDispatcherTypes.ts:36

Made with ❤️ by pirix-gh. Documentation generated by TypeDoc.