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

+2 -2
View File
@@ -23,7 +23,7 @@ export const command = new CommandBuilder()
/**
* Execute the volume command.
* @param {import("../src/MessageHandler.mjs").Message} message - 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(message, data) {
@@ -35,7 +35,7 @@ export async function run(message, data) {
const embed = new EmbedBuilder().setColor(getGlobalColor());
if (!volOption || raw == null || isNaN(Number(raw))) {
if (!volOption || raw === null || raw === undefined || isNaN(Number(raw))) {
const current = Math.round((p.preferredVolume ?? 1) * 100);
embed.setDescription(this.t(message, "responses.volume.current", { volume: current }));
} else {