FroostySnoowman / py-discord-html-transcripts

0 stars 0 forks source link

Disabled buttons make the transcript don't work #1

Closed Just1diaxx closed 2 weeks ago

Just1diaxx commented 1 month ago

Console log: Traceback (most recent call last): File "/home/container/.local/lib/python3.12/site-packages/chat_exporter/construct/transcript.py", line 161, in export return await super().build_transcript() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/container/.local/lib/python3.12/site-packages/chat_exporter/construct/transcript.py", line 53, in build_transcript message_html, meta_data = await gather_messages( ^^^^^^^^^^^^^^^^^^^^^^ File "/home/container/.local/lib/python3.12/site-packages/chat_exporter/construct/message.py", line 451, in gather_messages content_html, meta_data = await MessageConstruct( ^^^^^^^^^^^^^^^^^^^^^^^ File "/home/container/.local/lib/python3.12/site-packages/chat_exporter/construct/message.py", line 89, in construct_message await self.build_message() File "/home/container/.local/lib/python3.12/site-packages/chat_exporter/construct/message.py", line 95, in build_message await self.build_interaction() File "/home/container/.local/lib/python3.12/site-packages/chat_exporter/construct/message.py", line 219, in build_interaction ("COMMAND", "/" + self.message.interaction_metadata.name, PARSE_MODE_NONE), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'MessageInteractionMetadata' object has no attribute 'name'

FroostySnoowman commented 1 month ago

Are you on the latest version of Discord.py? This only works on the very latest version. Otherwise, use one version below on PyPI. (pip install py-discord-html-transcripts==1.0.1)

Just1diaxx commented 1 month ago

Yes, with my hosting every library updates at every restart.

FroostySnoowman commented 1 month ago

Please tell me the version you're using

Just1diaxx commented 1 month ago

Please tell me the version you're using

discord.py 2.3.2 py-discord-html-transcripts 1.0.4

FroostySnoowman commented 1 month ago

That is not the latest version of discord.py. Please downgrade the transcripts library or alternatively, upgrade to 2.4.0 discord.py. https://pypi.org/project/discord.py/

Just1diaxx commented 1 month ago

image Same thing

Just1diaxx commented 1 month ago

I updated to 2.4.0 and downgraded transcripts to 1.0.1

FroostySnoowman commented 1 month ago

Use the latest version of transcripts...

Just1diaxx commented 1 month ago

Use the latest version of transcripts...

Same thing

FroostySnoowman commented 1 month ago

Apologies for the delay. I have just tested it, and it works fine. Please resend your discord.py and transcripts versions. Alongside this, make sure you have just "discord.py" installed, not "discord" as well.

FroostySnoowman commented 4 weeks ago

Hello, are you still facing this issue? If we don't hear back, we will close this due to inactivity.

Just1diaxx commented 4 weeks ago

No, i just updated the transcripts and discord.py to the latest version

FroostySnoowman commented 4 weeks ago

Could you please type pip freeze into a command prompt/terminal and send that output here?

FroostySnoowman commented 4 weeks ago
Screenshot 2024-08-15 at 2 44 01 PM

As a "proof" or whatever you would like to call it, here it is working. A disabled button.

FroostySnoowman commented 4 weeks ago

Hello, after extensive experimenting, the issue is not relating to a disabled button, but rather a slash command inside of the channel in which you want to create the transcript in. I will be pushing an update here shortly.

FroostySnoowman commented 4 weeks ago

It should now be fixed. Thanks to Discord, we can't access the actual slash command name anymore.

FroostySnoowman commented 3 weeks ago

Just following up, have you had a chance to test this?

FroostySnoowman commented 2 weeks ago

Closed due to inactivity.