mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
...
This commit is contained in:
1 parent
00df253588
commit
ea05777390
7 files changed
+62
-14
No files matched your search
+3
-3
@@ -142,9 +142,9 @@ class Remix {
|
||||
const client = new Client({
|
||||
waitForGuilds: true,
|
||||
cache: {
|
||||
guilds: 2_000,
|
||||
channels: 5_000,
|
||||
users: 10_000,
|
||||
guilds: 10_000,
|
||||
channels: 100_000,
|
||||
users: 200_000,
|
||||
members: 5_000,
|
||||
messages: 20,
|
||||
},
|
||||
|
||||
@@ -13,7 +13,7 @@ import { EmbedBuilder } from "@fluxerjs/core";
|
||||
import { getVoiceManager } from "@fluxerjs/voice";
|
||||
import { getGlobalColor, PageBuilder } from "../ui/index.mjs";
|
||||
import { cleanId } from "../utils/Utils.mjs";
|
||||
import { remove247ChannelMode, isPlayerConnectionDead, detachPlayerFromManager } from "../utils/Helpers247.mjs";
|
||||
import { remove247ChannelMode, isPlayerConnectionDead, detachPlayerFromManager, resolveChannelCached } from "../utils/Helpers247.mjs";
|
||||
import { logger } from "./Logger.mjs";
|
||||
import { Dashboard } from "../dashboard/Dashboard.mjs";
|
||||
|
||||
@@ -258,7 +258,7 @@ const BotVoiceMixin = {
|
||||
|
||||
if (!this.lavalink) throw new Error("Audio node not ready yet — try again in a moment");
|
||||
|
||||
const channel = this.client?.channels?.get?.(cleanChannelId);
|
||||
const channel = await resolveChannelCached(this.client, cleanChannelId);
|
||||
if (!channel) throw new Error("Channel not found");
|
||||
if (channel.type !== 2) throw new Error("Not a voice channel");
|
||||
|
||||
|
||||
Reference in new issue
Block a user