From 9884419d5d18581f5a8b0233ae1606515bf87571 Mon Sep 17 00:00:00 2001 From: Samlon Date: Wed, 13 Aug 2025 12:43:43 +0200 Subject: prevent discord from complaining --- cogs/ai.py | 1 + cogs/music/join.py | 3 ++- cogs/music/stop.py | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) (limited to 'cogs') diff --git a/cogs/ai.py b/cogs/ai.py index 0a99c64..31e384d 100644 --- a/cogs/ai.py +++ b/cogs/ai.py @@ -42,6 +42,7 @@ class AI(commands.Cog): }) ) + logger.info(response.json()) await ctx.send_followup(response.json()["choices"][0]["message"]["content"]) diff --git a/cogs/music/join.py b/cogs/music/join.py index a0b51f9..47c746f 100644 --- a/cogs/music/join.py +++ b/cogs/music/join.py @@ -13,7 +13,8 @@ class Join(commands.Cog): async def join(self, ctx): channel = ctx.author.voice.channel await channel.connect() - await ctx.followup.send("Dołączono do kanalu głosowego", ephemeral=True) + await ctx.respond(content="\u200b", ephemeral=True) + await ctx.interaction.delete_original_message() logger.info("Bot connected to voice channel") diff --git a/cogs/music/stop.py b/cogs/music/stop.py index c7abfbd..5713c81 100644 --- a/cogs/music/stop.py +++ b/cogs/music/stop.py @@ -11,6 +11,8 @@ class Stop(commands.Cog): @commands.slash_command(name="stop", description="stopuj bota") async def stop(self, ctx): + await ctx.respond(content="\u200b", ephemeral=True) + await ctx.interaction.delete_original_message() await ctx.voice_client.disconnect() logger.info("Bot disconnected from voice channel") -- cgit v1.2.3