From 010b40800b367e2bcc1c6b53e067465479b12b75 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 8 Aug 2023 22:19:50 +0200 Subject: [PATCH] remove searchengine constraint --- src/commands/music/play.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/commands/music/play.ts b/src/commands/music/play.ts index 2403730..1a9bc30 100644 --- a/src/commands/music/play.ts +++ b/src/commands/music/play.ts @@ -1,4 +1,5 @@ import { SlashCommandBuilder } from "@discordjs/builders"; +import { Player, SearchResult, useMainPlayer, useQueue } from "discord-player"; import { AutocompleteInteraction, ChatInputCommandInteraction, @@ -7,10 +8,9 @@ import { GuildResolvable, VoiceBasedChannel, } from "discord.js"; -import { Metadata } from "../../utils/metadata"; import { getLocale, getLocalizations } from "../../utils/locales"; +import { Metadata } from "../../utils/metadata"; import { getFilename } from "../../utils/misc"; -import { Player, QueryType, SearchResult, useMainPlayer, useQueue } from "discord-player"; export default { scope: () => [], @@ -118,7 +118,6 @@ export default { const result = await player .search(query, { requestedBy: interaction.user, - searchEngine: QueryType.YOUTUBE_SEARCH, }) .then((x) => x);