This commit is contained in:
NoLogicAlan committed 2026-09-10 01:50:48 +03:00
1 parent de49a47480
commit a188fa0b62
13 files changed
+12 -1710

No files matched your search

+9 -1
View File
@@ -101,9 +101,17 @@ export async function run(msg, data) {
const id = cleanId(p._channelId ?? mapKey);
return id ? `<#${id}>` : "\`unknown\`";
});
if (!client?.channels?.get?.(targetChannelId)) {
return msg.reply(
this.t(msg, "responses.leave.specifyChannel", {
channels: channelList.map(c => `• ${c}`).join("\n"),
prefix: this.handler.getPrefix(msg.message?.guildId ?? msg.channel?.guild?.id)
})
);
}
return msg.reply(
this.t(msg, "responses.leave.noPlayerInChannel", {
channel: `<#${targetChannelId}>`,
channel: targetChannelId,
channels: channelList.map(c => `• ${c}`).join("\n")
})
);