Jourdelune
Jourdelune
It is not totally fixed, indeed `file.file.read()` also blocks^^. ```py async def on_listening_stopped(sink, exc=None): sink.convert_files() for file in sink.output_files.values(): print(file.user.id) print(file.file.read()) # block ``` Also if the code running in...
> Also if the code running in a cogs, the file.user will be a int but outside a cogs, it will be a user object, shouldn't this be > constant?...
also it's usefull to raise error in the after callback, All the errors are otherwise glossed over, which does not facilitate development. ```py async def on_listening_stopped(sink, exc=None): sink.convert_files() print(5/0) #...
There is also a very common silent error, sometimes the converter does not find the file to convert. ```py import traceback async def on_listening_stopped(sink, exc=None): try: sink.convert_files() print('ok') except Exception:...
Here is an example when the exception is held: ```py from discord import app_commands import discord import asyncio DEV_GUILD = discord.Object(id=913766363791757353) class Client(discord.Client): def __init__(self, *, intents: discord.Intents): super().__init__(intents=intents) self.tree...
okay, thanks you for the fix^^. Also I have this issue: ``` File "/home/jourdelune/.local/lib/python3.11/site-packages/discord/gateway.py", line 953, in received_message "user": user if user is not None else Object(id=user_id, type=Member), ``` because...
Thank you for the fix, but maybe indeed of use ```py while voice_client.is_listening() or voice_client.is_listen_cleaning(): ``` the `voice_client.stop_listening` can only end once all this has happened, right? (i.e. only when...
uh okay, thanks for you answer :p