Carbon
Core/Classes

ApplicationAuthorizedListener

Base class for creating event listeners that handle Discord gateway events. This abstract class defines the structure for event listeners and provides type safety for event handling.

Extends

Constructors

Constructor

new ApplicationAuthorizedListener(): ApplicationAuthorizedListener

Returns

ApplicationAuthorizedListener

Inherited from

BaseListener.constructor

Properties

PropertyModifierTypeDefault valueOverrides
typereadonlyApplicationAuthorizedListenerEvent.ApplicationAuthorizedBaseListener.type

Methods

handle()

abstract handle(data, client): Promise<void>

Parameters

ParameterType
dataobject & Omit<APIWebhookEventApplicationAuthorizedData, "user" | "guild">
clientClient

Returns

Promise<void>

Overrides

BaseListener.handle


parseRawData()

parseRawData(data, client): object & Omit<APIWebhookEventApplicationAuthorizedData, "user" | "guild">

Parameters

ParameterType
dataAPIWebhookEventApplicationAuthorizedData
clientClient

Returns

object & Omit<APIWebhookEventApplicationAuthorizedData, "user" | "guild">

Overrides

BaseListener.parseRawData

On this page