This commit is contained in:
git-bruh 2020-12-03 10:40:26 +05:30
parent d4551a5c61
commit 3d84ce1143
No known key found for this signature in database
GPG key ID: E1475C50075ADCE6

10
main.py
View file

@ -238,16 +238,6 @@ class Callbacks(object):
event.sender == self.client.user: event.sender == self.client.user:
return return
# https://github.com/Rapptz/discord.py/issues/6058
content_dict = event.source.get("content")
try:
if content_dict["m.relates_to"]["rel_type"] == "m.replace":
edited_event = content_dict["m.relates_to"]["event_id"]
webhook_message = message_store[edited_event]
await webhook_message.delete()
except KeyError:
pass
message = event.body message = event.body
if not message: if not message: