mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
FIXED
This commit is contained in:
1 parent
de49a47480
commit
a188fa0b62
13 files changed
+12
-1710
No files matched your search
+9
-1
@@ -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")
|
||||
})
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user