Revert
This commit is contained in:
parent
d4551a5c61
commit
3d84ce1143
1 changed files with 0 additions and 10 deletions
10
main.py
10
main.py
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue