Revert "fix: Add defer to some buttons."

This commit is contained in:
Lemon4ksan
2025-03-25 11:54:03 +03:00
parent cf63953dad
commit 8852f3fc62
2 changed files with 4 additions and 4 deletions

View File

@@ -907,6 +907,10 @@ class VoiceExtension(BaseBot):
if guild['current_menu']:
await self.update_menu_embed_and_view(ctx, button_callback=button_callback)
if not guild['vibing']:
# Giving FFMPEG enough time to process the audio file
await asyncio.sleep(1)
loop = self.get_current_event_loop(ctx)
try:
vc.play(song, after=lambda exc: asyncio.run_coroutine_threadsafe(self.play_next_track(ctx, after=True), loop))

View File

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