attachment test

This commit is contained in:
2024-11-10 16:23:27 +01:00
parent baeb3de67e
commit ab199fc285
+9 -1
View File
@@ -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