mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
little changes
This commit is contained in:
1 parent
862f326996
commit
b7252fccaf
41 files changed
+261
-228
No files matched your search
+2
-2
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user