Documentation of Music & Core (almost done)

This commit is contained in:
deytenit committed 2024-03-02 02:04:00 +03:00
1 parent 3144dd69b7
commit afc6fce555
22 files changed
+886 -459

No files matched your search

+11 -9
View File
@@ -1,3 +1,14 @@
/**
* Ready
*
* Will execute upon emitting Client's Ready event.
*
* @remarks Will push slash commands, set activity status,
* and log bot's initials.
*
* @packageDocumentation
*/
import { generateDependencyReport } from "@discordjs/voice";
import { Events } from "discord.js";
@@ -5,14 +16,6 @@ import config from "$config.js";
import Client from "$lib/client.js";
import logger from "$lib/logger.js";
/**
* Function that will execute upon emitting Client's Ready event.
*
* @remarks Will push slash commands, set activity status,
* and log bot's initials.
*
* @param client - Quetza client.
*/
async function execute(client: Client<true>): Promise<void> {
const commandData = client.commands.map((value) => value.data);
@@ -42,7 +45,6 @@ async function execute(client: Client<true>): Promise<void> {
client.user.setActivity(config.application.activity);
}
/** Event name. */
const name = Events.ClientReady;
export { execute, name };