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
@@ -96,7 +96,7 @@ function buildVotersEmbed(voters, total, page, limit, type, resourceId, expired
export async function run(msg, data) {
const fluxerlist = this.fluxerlist;
const prefix = this.handler?.getPrefix?.(msg.message?.guildId) ?? "%";
const prefix = this.handler.getPrefix(msg.message?.guildId);
const action = data.get("action")?.value ?? "info";
const type = data.get("type")?.value ?? "bot";
const resourceId = data.get("id")?.value || null;