mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
hotfix
This commit is contained in:
1 parent
54d09d1b64
commit
f1c87d410d
15 files changed
+257
-96
No files matched your search
@@ -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 => {
|
||||
|
||||
Reference in new issue
Block a user