fix: Add defer to some buttons.

This commit is contained in:
Lemon4ksan
2025-03-21 19:39:37 +03:00
parent cf3295f0db
commit cf63953dad
2 changed files with 4 additions and 4 deletions

View File

@@ -194,6 +194,8 @@ class SwitchTrackButton(Button, VoiceExtension):
)
return
await interaction.response.defer()
if callback_type == 'next':
title = await self.play_next_track(interaction, button_callback=True)
else:
@@ -381,6 +383,8 @@ class MyVibeButton(Button, VoiceExtension):
}
)
return
await interaction.response.defer()
if track:
logging.info(f"[MENU] Playing vibe for track '{track["id"]}'")