Skip to content

events/ready

ClientReady event handler — fires once after the bot successfully logs in.

On startup it immediately runs checkForPromotions and then schedules it to repeat every 24 hours.

const name: ClientReady = Events.ClientReady

Defined in: events/ready.ts:14

Discord event name this module handles.


const once: true = true

Defined in: events/ready.ts:16

When true, the event listener fires only once.

execute(client): Promise<void>

Defined in: events/ready.ts:22

Logs the bot’s identity and starts the daily promotion-check interval.

TSClient

The fully initialised TSClient.

Promise<void>