refactor: centralize prefix resolution into CommandHandler

Replace all scattered prefix lookups across the codebase with a single
source of truth: CommandHandler.getPrefix(guildId).
This commit is contained in:
NoLogicAlan committed 2026-05-31 15:02:18 +03:00
1 parent 23d0dbc522
commit ba479e4c04
25 files changed
+155 -159

No files matched your search

+1 -1
View File
@@ -38,7 +38,7 @@ export async function run(message, data) {
if (!volOption || raw === null || raw === undefined || isNaN(Number(raw))) {
const currentDefault = set?.get("volume") ?? 100;
const currentPlayerVol = Math.round((p.preferredVolume ?? 1) * 100);
const pfx = set?.get("prefix") ?? "%";
const pfx = this.handler.getPrefix(message.channel?.guildId ?? message.message?.guildId);
embed
.setTitle(this.t(message, "responses.volumedefault.title"))
.setDescription(