Š 2026 Hedgehog Software, LLC
import { Events, Listener } from "@sapphire/framework"; import { ActivityType, type Client } from "discord.js"; export class ClientReadyListener extends Listener { public constructor( context: Listener.LoaderContext, options: Listener.Options ) { super(context, { ...options, event: Events.ClientReady, once: true, }); } public run(client: Client) { client.logger.info( `Bot Client Logged in as ${client.user!.tag} (${client.application?.id})` ); client.user!.setActivity({ type: ActivityType.Watching, name: "over EBC", }); } }
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