mirror of
https://github.com/kirameki-cafe/Yumi.git
synced 2026-09-13 18:59:19 +00:00
Add option to let user search directly from play
This commit is contained in:
@@ -70,7 +70,7 @@ const EMBEDS = {
|
||||
export async function joinVoiceChannelProcedure (data: Interaction | Message, instance: (DiscordMusicPlayerInstance | null), voiceChannel: (VoiceChannel | StageChannel)) {
|
||||
|
||||
const isSlashCommand = data instanceof CommandInteraction && data.isCommand();
|
||||
const isAcceptableInteraction = data instanceof Interaction && data.isSelectMenu();
|
||||
const isAcceptableInteraction = data instanceof Interaction && (data.isSelectMenu() || data.isButton());
|
||||
const isMessage = data instanceof Message;
|
||||
if ((!isSlashCommand && !isAcceptableInteraction) && !isMessage) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user