© 2026 Hedgehog Software, LLC
"dependencies": { "@sapphire/framework": "^5.2.1", "chalk": "^5.3.0", "discord.js": "^14.15.3", "dotenv": "^16.4.5", "mongoose": "^8.5.3", "pretty-ms": "^9.1.0", "typescript": "^5.5.4" }
import { Listener } from "@sapphire/framework"; import type { 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})`); } }
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