From ab199fc285c8e41a77e549d74ab8cc14c15312c7 Mon Sep 17 00:00:00 2001 From: mtuszowski Date: Sun, 10 Nov 2024 16:23:27 +0100 Subject: [PATCH] attachment test --- music_commands.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/music_commands.py b/music_commands.py index 4a1b7f1..ca1c9f9 100644 --- a/music_commands.py +++ b/music_commands.py @@ -597,7 +597,15 @@ class MusicModule(commands.Cog): self.logger.error("Not possible to connect to voice") return self.logger.info("Connected to voice") - + @commands.hybrid_command( + name="batch_downloade", + description="ZaciÄ…ga obiekty z pliku", + guild=discord.Object(id=664789470779932693), + ) + async def batch_download(self,ctx, attachment): + self.ctx.reply(attachment.content_type) + contents = await attachment.read() + self.logger.info(contents) async def disconnect(self, ctx): """ Asynchronous Python function that disconnects the voice client if it is connected and