Skip to content

Commit

Permalink
Fixed Search for PlayNext Command
Browse files Browse the repository at this point in the history
Fixed PlayNext slash command search feature.

Signed-off-by: zebz213 <[email protected]>
  • Loading branch information
zebz213 authored Apr 10, 2024
1 parent 59aba39 commit ddbb0c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/events/client/InteractionCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export default class InteractionCreate extends Event {
await interaction.reply({ content: `An error occurred: \`${error}\`` });
}
} else if (interaction.type == InteractionType.ApplicationCommandAutocomplete) {
if (interaction.commandName == 'play') {
if ((interaction.commandName == 'play') || (interaction.commandName == 'playnext')) {
const song = interaction.options.getString('song');
const res = await this.client.queue.search(song);
let songs = [];
Expand Down

0 comments on commit ddbb0c8

Please sign in to comment.