This commit is contained in:
NoLogicAlan committed 2026-09-10 03:02:51 +03:00
1 parent 35aab94a53
commit 3ef54117bb
27 files changed
+5 -156

No files matched your search

-1
View File
@@ -240,7 +240,6 @@ function pickSerialized(p, ctx, lastTrack) {
};
const prev = p._autoplayPickChain ?? Promise.resolve();
const next = prev.then(run, run);
// Keep the chain alive even if a caller lets a rejection slip through.
p._autoplayPickChain = next.catch(() => {});
return next;
}
-2
View File
@@ -42,7 +42,6 @@ function resolveChannelId(rawArg, ctx, message) {
if (mentionMatch) return mentionMatch[2];
if (idMatch) return idMatch[1];
// Try name-based lookup — use the actual message to resolve the guild ID
const guildId = cleanId(getMessageGuildId(message));
if (!guildId) return null;
@@ -75,7 +74,6 @@ export async function run(message, data) {
return this.players.initPlayer(message, resolvedId);
}
// No argument — auto-detect the user's current voice channel
const { channelId: cid } = await this.players.checkVoiceChannels(message);
if (!cid) {
const prefix = this.handler.getPrefix(getMessageGuildId(message));
-1
View File
@@ -8,7 +8,6 @@
import { CommandBuilder } from "../src/commands/index.mjs";
import { getMessageGuildId } from "../src/ui/index.mjs";
// kept verbatim from the original file (unused there as well):
import { logger } from "../src/core/Logger.mjs";
import {
SHORTCUTS, BOOL_SETTINGS, VALID_LOCALES, setValidLocales,
-2
View File
@@ -128,8 +128,6 @@ async function enable247(ctx, set, guildId, channelId) {
const channels = get247Channels(set);
if (channels.has(id)) return;
// Platform only supports 1 voice channel per bot per guild.
// If another channel already has 24/7, disable it first.
if (channels.size >= MAX_247_CHANNELS) {
for (const oldId of channels) {
if (oldId !== id) {