Failure to generate join log when using Discord invite tool #298

Closed
opened 2026-05-02 15:25:09 -04:00 by Sirdog · 1 comment
Owner

On May 2nd when user Aduj (331543567795224576) joined the server, EnduraBot failed to generate a join log embed.

The following error was presented:

[2026-05-02 17:54:14]:INVITES:endurabot.listeners.invites_creation: Invite [q4FMeV2r] generated by fleff (137356883664175104).
[2026-05-02 17:54:23]:ERROR:discord.client: Ignoring exception in on_member_join
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/discord/client.py", line 504, in _run_event
    await coro(*args, **kwargs)
  File "/app/listeners/invites_use.py", line 28, in on_member_join
    if invite.uses < find_invite_by_code(invites_after_join, invite.code).uses:
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'uses'

Need to investigate.

On May 2nd when user Aduj (331543567795224576) joined the server, EnduraBot failed to generate a join log embed. The following error was presented: ```py [2026-05-02 17:54:14]:INVITES:endurabot.listeners.invites_creation: Invite [q4FMeV2r] generated by fleff (137356883664175104). [2026-05-02 17:54:23]:ERROR:discord.client: Ignoring exception in on_member_join Traceback (most recent call last): File "/usr/local/lib/python3.13/site-packages/discord/client.py", line 504, in _run_event await coro(*args, **kwargs) File "/app/listeners/invites_use.py", line 28, in on_member_join if invite.uses < find_invite_by_code(invites_after_join, invite.code).uses: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'uses' ``` Need to investigate.
Sirdog added this to the v2.13 milestone 2026-05-02 15:25:09 -04:00
Sirdog self-assigned this 2026-05-02 15:25:09 -04:00
Author
Owner

Successfully reproduced. Using the Invite to Server option in DMs, embedding it into the DM, and then the user clicking the button causes the error.

Interesting...

Successfully reproduced. Using the `Invite to Server` option in DMs, embedding it into the DM, and then the user clicking the button causes the error. Interesting...
Sirdog stopped working 2026-05-03 02:52:12 -04:00
24 minutes 1 second
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Total time spent: 24 minutes 1 second
Sirdog
24 minutes 1 second
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Sirdog/EnduraBot#298
No description provided.