Skip to content

ModLog embed fetched empty  #4

@Ag-oss

Description

@Ag-oss

Dynamite#8582 is started.
Ignoring exception in on_member_unban
Traceback (most recent call last):
File "F:\Users\pc\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\client.py", line 343, in _run_event
await coro(*args, **kwargs)
File "E:\Download\simple-modlogs-master\bot.py", line 38, in on_member_unban
await post_modlog(guild = gld, type = "UNBAN", user = found_entry.user, target = usr, reason = found_entry.reason)
File "E:\Download\simple-modlogs-master\bot.py", line 97, in post_modlog
caseid = str(int(s.embeds[0].author.name.split(" | Case ")[1]) + 1)
AttributeError: '_EmptyEmbed' object has no attribute 'split'
Ignoring exception in on_member_ban
Traceback (most recent call last):
File "F:\Users\pc\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\client.py", line 343, in _run_event
await coro(*args, **kwargs)
File "E:\Download\simple-modlogs-master\bot.py", line 25, in on_member_ban
await post_modlog(guild = gld, type = "BAN", user = found_entry.user, target = usr, reason = found_entry.reason)
File "E:\Download\simple-modlogs-master\bot.py", line 97, in post_modlog
caseid = str(int(s.embeds[0].author.name.split(" | Case ")[1]) + 1)
AttributeError: '_EmptyEmbed' object has no attribute 'split'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions