Skip to content
This repository has been archived by the owner on Oct 12, 2024. It is now read-only.

Commit

Permalink
Int-Fun-Music: Should be using editReply instead of reply
Browse files Browse the repository at this point in the history
  • Loading branch information
RealEthanPlayzDev committed Jun 29, 2024
1 parent 47aa056 commit 8786143
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/interactions/commands/fun/music.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,23 +58,23 @@ export const Command: MeteoriumChatCommand = {
const query = interaction.options.getString("query", true);
const channel = interaction.member.voice.channel;
if (!channel)
return await interaction.reply({
return await interaction.editReply({
content: "You are not in a voice channel.",
});

if (
interaction.guild.members.me?.voice.channelId &&
interaction.member.voice.channelId !== interaction.guild.members.me?.voice.channelId
)
return await interaction.reply({
return await interaction.editReply({
content: "You are not in the same voice channel.",
});

const search = await client.player.search(query, {
requestedBy: interaction.user,
});
if (!search.hasTracks())
return await interaction.reply({
return await interaction.editReply({
content: "No tracks found.",
});

Expand Down

0 comments on commit 8786143

Please sign in to comment.