diff --git a/src/events/client/InteractionCreate.ts b/src/events/client/InteractionCreate.ts index 669d03aa7..33e95bd9d 100644 --- a/src/events/client/InteractionCreate.ts +++ b/src/events/client/InteractionCreate.ts @@ -7,9 +7,9 @@ import { InteractionType, PermissionFlagsBits, } from 'discord.js'; +import { LoadType } from 'shoukaku'; import { Context, Event, Lavamusic } from '../../structures/index.js'; -import { LoadType } from 'shoukaku'; export default class InteractionCreate extends Event { constructor(client: Lavamusic, file: string) { diff --git a/src/events/client/SetupButtons.ts b/src/events/client/SetupButtons.ts index c9c4a0a0c..ba584f007 100644 --- a/src/events/client/SetupButtons.ts +++ b/src/events/client/SetupButtons.ts @@ -9,6 +9,7 @@ export default class SetupButtons extends Event { } public async run(interaction: any): Promise { if (!interaction.replied) await interaction.deferReply().catch(() => { }); + if (!interaction.member.voice.channel) return await buttonReply( interaction, @@ -70,7 +71,7 @@ export default class SetupButtons extends Event { } - Requested by ${player.current.info.requester}` ) .setImage(icon); - + if (!interaction.isButton()) return; if (message) { switch (interaction.customId) { case 'LOW_VOL_BUT': {