Skip to content

Commit

Permalink
fix(lyrics): no results found bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zapteryx committed Jul 1, 2024
1 parent 53e685b commit 264f095
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/commands/lyrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default {
}
} else {
try {
const response = await interaction.client.music.rest.execute({ path: `/v4/lyrics?query=${query}&source=genius`, method: 'GET' });
const response = await interaction.client.music.rest.execute({ path: `/v4/lyrics/search?query=${query}&source=genius`, method: 'GET' });
json = await response.json();
lyrics = formatResponse(json);
} catch (error) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/buttons/lyrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default {
let lyrics: string | Error;
await interaction.deferReply();
try {
const response = await interaction.client.music.rest.execute({ path: `/v4/lyrics?query=${query}&source=genius`, method: 'GET' });
const response = await interaction.client.music.rest.execute({ path: `/v4/lyrics/search?query=${query}&source=genius`, method: 'GET' });
json = await response.json();
lyrics = formatResponse(json);
} catch (error) {
Expand Down

0 comments on commit 264f095

Please sign in to comment.