Skip to content

Commit

Permalink
chore: applying defaultSearchPlatform to Lavalink
Browse files Browse the repository at this point in the history
  • Loading branch information
JirayuSrisawat-Github committed Oct 2, 2024
1 parent 5d70902 commit 8e02156
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { NodeOptions } from "sakulink";
import { NodeOptions, SearchPlatform } from "sakulink";

export const token: string = "";
export const defaultSearchPlatform: string = "youtube music";
export const defaultSearchPlatform: SearchPlatform = "youtube music";
export const defaultVolume: number = 75;
export const nodes: NodeOptions[] = [
{
Expand Down
4 changes: 2 additions & 2 deletions src/structures/Lavalink.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Manager, Player, Track, Node } from "sakulink";
import { Client } from "./Client";
import { nodes } from "../config";
import { defaultSearchPlatform, nodes } from "../config";

/**
* The Lavalink manager class.
Expand All @@ -21,7 +21,7 @@ export class Lavalink extends Manager {
autoMove: true,
autoResume: true,
autoPlay: true,
defaultSearchPlatform: "youtube music",
defaultSearchPlatform: defaultSearchPlatform,
nodes: nodes,
send: (guildId: string, payload: unknown) => client.guilds.cache.get(guildId)?.shard.send(payload),
});
Expand Down

0 comments on commit 8e02156

Please sign in to comment.