1
0
Fork 0

Allow m.notice (embeds) to be edited

This commit is contained in:
Cadence Ember 2023-10-13 21:32:42 +13:00
parent 850de85d82
commit 67305bb636

View file

@ -102,7 +102,7 @@ async function editToChanges(message, guild, api) {
// So we'll remove entries from eventsToReplace that *definitely* cannot have changed. (This is category 4 mentioned above.) Everything remaining *may* have changed. // So we'll remove entries from eventsToReplace that *definitely* cannot have changed. (This is category 4 mentioned above.) Everything remaining *may* have changed.
eventsToReplace = eventsToReplace.filter(ev => { eventsToReplace = eventsToReplace.filter(ev => {
// Discord does not allow files, images, attachments, or videos to be edited. // Discord does not allow files, images, attachments, or videos to be edited.
if (ev.old.event_type === "m.room.message" && ev.old.event_subtype !== "m.text" && ev.old.event_subtype !== "m.emote") { if (ev.old.event_type === "m.room.message" && ev.old.event_subtype !== "m.text" && ev.old.event_subtype !== "m.emote" && ev.old.event_subtype !== "m.notice") {
return false return false
} }
// Discord does not allow stickers to be edited. // Discord does not allow stickers to be edited.