© 2026 Hedgehog Software, LLC
import { Listener } from "@sapphire/framework"; import { Client } from "discord.js"; export class ReadyListener extends Listener { public constructor( context: Listener.LoaderContext, options: Listener.Options ) { super(context, { ...options, once: true, event: "ready", }); } public run(client: Client) { const { username, id } = client.user!; this.container.logger.info(`Successfully logged in as ${username} (${id})`); } }
Listeners
Join the Discord to ask follow-up questions and connect with the community
Sapphire is a next-gen object-oriented Discord.js bot framework.
2,286 Members