little changes

This commit is contained in:
NoLogicAlan committed 2026-06-16 22:34:11 +03:00
1 parent 862f326996
commit b7252fccaf
41 files changed
+261 -228

No files matched your search

+3 -2
View File
@@ -6,6 +6,7 @@
import { CommandBuilder } from "../src/CommandHandler.mjs";
import { EmbedBuilder } from "@fluxerjs/core";
import { getGlobalColor } from "../src/MessageHandler.mjs";
import { logger } from "../src/constants/Logger.mjs";
export const command = new CommandBuilder()
.setName("test")
@@ -15,7 +16,7 @@ export const command = new CommandBuilder()
/**
* Execute the test command.
* @param {import("../src/MessageHandler.mjs").Message} msg - The incoming message
* @param {Map<string, {value: *}>>} data - Slash-command options map
* @param {Map<string, {value: *}>} data - Slash-command options map
* @returns {Promise<void>}
*/
export async function run(msg, data) {
@@ -67,7 +68,7 @@ export async function run(msg, data) {
try {
const fetched = await this.client.channels.fetch(channelId);
if (fetched?.name) return fetched.name;
} catch(e) { }
} catch(e) { logger.warn("[Test] Error:", e?.message); }
return `Unknown (${channelId})`;
};