From 8d8f3a4d536aa6f952c7e9f66a80341156c3188a Mon Sep 17 00:00:00 2001 From: SamlonDev Date: Thu, 21 Aug 2025 12:57:29 +0200 Subject: can't use await with vc.play --- cogs/music/play_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cogs/music/play_utils.py') diff --git a/cogs/music/play_utils.py b/cogs/music/play_utils.py index 1e46594..e21d6d9 100644 --- a/cogs/music/play_utils.py +++ b/cogs/music/play_utils.py @@ -107,11 +107,11 @@ class PlayUtils: # Play the audio source = discord.FFmpegPCMAudio(source=filename) - await vc.play(source) + vc.play(source) logger.info(f"Playing file: {title}") await ctx.respond(f"grom: {title}") except Exception as e: logger.error(f"Error in play: {str(e)}", exc_info=True) - await ctx.respond(f"eror: {str(e)}", ephemeral=True) \ No newline at end of file + await ctx.respond(f"eror: {str(e)}", ephemeral=True) -- cgit v1.2.3