This commit is contained in:
NoLogicAlan committed 2026-09-15 03:06:23 +03:00
1 parent 54d09d1b64
commit f1c87d410d
15 files changed
+257 -96

No files matched your search

+8
View File
@@ -145,6 +145,14 @@ const PlayerLifecycleMixin = {
const guildId = getMessageGuildId(msg);
const cleanGuildId = cleanId(guildId);
/* DMs have no voice channels — prompting for a channel selection would
be pointless (and hang until timeout). Tell the user directly. */
if (!cleanGuildId) {
await msg.reply(this._t(msg, "responses._common.serverOnlyForMusic")).catch(() => {});
return false;
}
const allChannels = cleanGuildId
? [...(this.commands.client?.channels?.values?.() ?? [])]
.filter(c => {