remove searchengine constraint
All checks were successful
ci/woodpecker/push/publish Pipeline was successful

This commit is contained in:
Mylloon 2023-08-08 22:19:50 +02:00
parent c3b710656f
commit 010b40800b
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -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);