Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can't create a new transcript #51

Closed
berchbrown opened this issue Jul 26, 2022 · 1 comment
Closed

I can't create a new transcript #51

berchbrown opened this issue Jul 26, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@berchbrown
Copy link

DiscordChatExporterPy Version

2.2.1

Discord Version

1.7.2

Bug Description

When i wanted to create a new transcript, it shows me this error:

Bug Traceback

Traceback (most recent call last):
  File "C:\Python\fantasupport\venv\lib\site-packages\chat_exporter\construct\transcript.py", line 74, in export
    return await super().build_transcript()
  File "C:\Python\fantasupport\venv\lib\site-packages\chat_exporter\construct\transcript.py", line 39, in build_transcript
    message_html = await Message(
  File "C:\Python\fantasupport\venv\lib\site-packages\chat_exporter\construct\message.py", line 302, in gather
    message_html += await MessageConstruct(
  File "C:\Python\fantasupport\venv\lib\site-packages\chat_exporter\construct\message.py", line 69, in construct_message
    await self.build_message()
  File "C:\Python\fantasupport\venv\lib\site-packages\chat_exporter\construct\message.py", line 76, in build_message
    await self.build_assets()
  File "C:\Python\fantasupport\venv\lib\site-packages\chat_exporter\construct\message.py", line 163, in build_assets
    for c in self.message.components:
AttributeError: 'Message' object has no attribute 'components'
Ignoring exception in command save:
Traceback (most recent call last):
  File "C:\Python\fantasupport\venv\lib\site-packages\discord\ext\commands\core.py", line 85, in wrapped
    ret = await coro(*args, **kwargs)
  File "C:\Python\fantasupport\test.py", line 16, in save
    await chat_exporter.export(ctx)
  File "C:\Python\fantasupport\venv\lib\site-packages\chat_exporter\chat_exporter.py", line 50, in export
    return (
AttributeError: 'NoneType' object has no attribute 'html'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Python\fantasupport\venv\lib\site-packages\discord\ext\commands\bot.py", line 939, in invoke
    await ctx.command.invoke(ctx)
  File "C:\Python\fantasupport\venv\lib\site-packages\discord\ext\commands\core.py", line 863, in invoke
    await injected(*ctx.args, **ctx.kwargs)
  File "C:\Python\fantasupport\venv\lib\site-packages\discord\ext\commands\core.py", line 94, in wrapped
    raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'NoneType' object has no attribute 'html'

Additional Information

No response

@berchbrown berchbrown added the bug Something isn't working label Jul 26, 2022
@mahtoid mahtoid self-assigned this Jul 26, 2022
@mahtoid
Copy link
Owner

mahtoid commented Jul 26, 2022

For usage of discord.py 1.7.3 (or before) you have to use chat-exporter 1.7.3
To downgrade, run: pip install chat-exporter==1.7.3

@mahtoid mahtoid closed this as completed Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants