mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
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:
1 parent
23d0dbc522
commit
ba479e4c04
25 files changed
+155
-159
No files matched your search
+1
-1
@@ -24,7 +24,7 @@ export async function run(message, data) {
|
||||
const totalTracks = p.queue.size();
|
||||
|
||||
if (!current && totalTracks === 0) {
|
||||
const embed = new EmbedBuilder().setColor(getGlobalColor()).setDescription(this.t(message, "responses.list.empty", { prefix: "%" }));
|
||||
const embed = new EmbedBuilder().setColor(getGlobalColor()).setDescription(this.t(message, "responses.list.empty", { prefix: this._commands.getPrefix(message.message?.guildId ?? message.channel?.guildId) }));
|
||||
return message.reply({ embeds: [embed] });
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user