Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
SxMAbel committed Aug 3, 2024
1 parent 3d2bbfc commit 2e6ca34
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
13 changes: 6 additions & 7 deletions src/structures/Manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ export class Manager extends EventEmitter {
"youtube music": "ytmsearch",
youtube: "ytsearch",
spotify: "spsearch",
jiosaavn: "jssearch",
soundcloud: "scsearch",
deezer: "dzsearch",
tidal: "tdsearch",
applemusic: "amsearch",
bandcamp: "bcsearch",
jiosaavn: "jssearch",
soundcloud: "scsearch",
deezer: "dzsearch",
tidal: "tdsearch",
applemusic: "amsearch",
bandcamp: "bcsearch",
};

/** The map of players. */
Expand Down Expand Up @@ -431,7 +431,6 @@ export interface ManagerOptions {

export type SearchPlatform = "deezer" | "soundcloud" | "youtube music" | "youtube" | "spotify" | "jiosaavn" | "tidal" | "applemusic" | "bandcamp";


export interface SearchQuery {
/** The source to search from. */
source?: SearchPlatform | string;
Expand Down
2 changes: 1 addition & 1 deletion src/structures/Rest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class Rest {
try {
const response = await axios(config);
return response.data;
} catch(error) {
} catch (error) {
if (error?.response?.status === 404) {
this.node.destroy();
this.node.manager.createNode(this.node.options).connect();
Expand Down

0 comments on commit 2e6ca34

Please sign in to comment.