Fix more edge-case embed formatting
This commit is contained in:
parent
762e48230c
commit
afbbe0da3d
12 changed files with 428 additions and 127 deletions
108
test/data.js
108
test/data.js
|
@ -1605,6 +1605,114 @@ module.exports = {
|
|||
edited_timestamp: "2023-10-01T01:42:05.631000+00:00",
|
||||
flags: 0,
|
||||
components: []
|
||||
},
|
||||
blockquote_in_embed: {
|
||||
id: "1158894131322552391",
|
||||
type: 0,
|
||||
content: "<:emoji:288858540888686602> **4 |** <#176333891320283136>",
|
||||
channel_id: "331390333810376704",
|
||||
author: {
|
||||
id: "700796664276844612",
|
||||
username: "Starboard",
|
||||
avatar: "1db8745493a3701235275be62ce05fea",
|
||||
discriminator: "9387",
|
||||
public_flags: 65536,
|
||||
flags: 65536,
|
||||
bot: true,
|
||||
banner: null,
|
||||
accent_color: null,
|
||||
global_name: null,
|
||||
avatar_decoration_data: null,
|
||||
banner_color: null
|
||||
},
|
||||
attachments: [],
|
||||
embeds: [
|
||||
{
|
||||
type: "rich",
|
||||
description: "reply draft\n" +
|
||||
"> The following is a message composed via consensus of the Stinker Council.\n" +
|
||||
"> \n" +
|
||||
"> For those who are not currently aware of our existence, we represent the organization known as Wonderland. Our previous mission centered around the assortment and study of puzzling objects, entities and other assorted phenomena. This mission was the focus of our organization for more than 28 years.\n" +
|
||||
"> \n" +
|
||||
"> Due to circumstances outside of our control, this directive has now changed. Our new mission will be the extermination of the stinker race.\n" +
|
||||
"> \n" +
|
||||
"> There will be no further communication.",
|
||||
color: 16769436,
|
||||
timestamp: "2023-10-03T19:06:01.516000+00:00",
|
||||
fields: [
|
||||
{
|
||||
name: "",
|
||||
value: "[Go to Message](https://discord.com/channels/112760669178241024/176333891320283136/1158842413025071135)",
|
||||
inline: false
|
||||
}
|
||||
],
|
||||
author: {
|
||||
name: "minimus",
|
||||
url: "https://discord.com/channels/112760669178241024/176333891320283136/1158842413025071135",
|
||||
icon_url: "https://cdn.discordapp.com/guilds/112760669178241024/users/112760500130975744/avatars/caf8f18d190e92c280f8bc7e13f3dfb7.png",
|
||||
proxy_icon_url: "https://images-ext-2.discordapp.net/external/ufuM1hu_C6wpfbLS-RVb5iqa_X6Ht3aIj-xntAo8jjw/https/cdn.discordapp.com/guilds/112760669178241024/users/112760500130975744/avatars/caf8f18d190e92c280f8bc7e13f3dfb7.png"
|
||||
}
|
||||
}
|
||||
],
|
||||
mentions: [],
|
||||
mention_roles: [],
|
||||
pinned: false,
|
||||
mention_everyone: false,
|
||||
tts: false,
|
||||
timestamp: "2023-10-03T22:31:32.119000+00:00",
|
||||
edited_timestamp: null,
|
||||
flags: 0,
|
||||
components: []
|
||||
},
|
||||
escaping_crazy_html_tags: {
|
||||
id: "1158894131322552391",
|
||||
type: 0,
|
||||
content: "",
|
||||
channel_id: "331390333810376704",
|
||||
author: {
|
||||
id: "700796664276844612",
|
||||
username: "Starboard",
|
||||
avatar: "1db8745493a3701235275be62ce05fea",
|
||||
discriminator: "9387",
|
||||
public_flags: 65536,
|
||||
flags: 65536,
|
||||
bot: true,
|
||||
banner: null,
|
||||
accent_color: null,
|
||||
global_name: null,
|
||||
avatar_decoration_data: null,
|
||||
banner_color: null
|
||||
},
|
||||
attachments: [],
|
||||
embeds: [{
|
||||
type: "rich",
|
||||
title: "<strong>[<span data-mx-color='#123456'>Hey<script>](https://a.co/&)",
|
||||
description: "<strong>[<span data-mx-color='#123456'>Hey<script>](https://a.co/&)",
|
||||
url: "https://a.co/&<script>",
|
||||
footer: {
|
||||
text: "<strong>[<span data-mx-color='#123456'>Hey<script>](https://a.co/&)"
|
||||
},
|
||||
author: {
|
||||
name: "<strong>[<span data-mx-color='#123456'>Hey<script>](https://a.co/&)",
|
||||
url: "https://a.co/&<script>",
|
||||
icon_url: "https://a.co/&<script>"
|
||||
},
|
||||
fields: [
|
||||
{
|
||||
name: "<strong>[<span data-mx-color='#123456'>Hey<script>](https://a.co/&)",
|
||||
value: "<strong>[<span data-mx-color='#123456'>Hey<script>](https://a.co/&)"
|
||||
}
|
||||
]
|
||||
}],
|
||||
mentions: [],
|
||||
mention_roles: [],
|
||||
pinned: false,
|
||||
mention_everyone: false,
|
||||
tts: false,
|
||||
timestamp: "2023-10-03T22:31:32.119000+00:00",
|
||||
edited_timestamp: null,
|
||||
flags: 0,
|
||||
components: []
|
||||
}
|
||||
},
|
||||
message_update: {
|
||||
|
|
|
@ -10,7 +10,8 @@ INSERT INTO channel_room (channel_id, room_id, name, nick, thread_parent, custom
|
|||
('1100319550446252084', '!BnKuBPCvyfOkhcUjEu:cadence.moe', 'worm-farm', NULL, NULL, NULL),
|
||||
('1162005314908999790', '!FuDZhlOAtqswlyxzeR:cadence.moe', 'Hey.', NULL, '1100319550446252084', NULL),
|
||||
('297272183716052993', '!rEOspnYqdOalaIFniV:cadence.moe', 'general', NULL, NULL, NULL),
|
||||
('122155380120748034', '!cqeGDbPiMFAhLsqqqq:cadence.moe', 'cadences-mind', 'coding', NULL, NULL);
|
||||
('122155380120748034', '!cqeGDbPiMFAhLsqqqq:cadence.moe', 'cadences-mind', 'coding', NULL, NULL),
|
||||
('176333891320283136', '!qzDBLKlildpzrrOnFZ:cadence.moe', '🌈丨davids-horse_she-took-the-kids', 'wonderland', NULL, 'mxc://cadence.moe/EVvrSkKIRONHjtRJsMLmHWLS');
|
||||
|
||||
INSERT INTO sim (user_id, sim_name, localpart, mxid) VALUES
|
||||
('0', 'bot', '_ooye_bot', '@_ooye_bot:cadence.moe'),
|
||||
|
@ -40,7 +41,8 @@ INSERT INTO message_channel (message_id, channel_id) VALUES
|
|||
('1145688633186193480', '1100319550446252084'),
|
||||
('1145688633186193481', '1100319550446252084'),
|
||||
('1162005526675193909', '1162005314908999790'),
|
||||
('1162625810109317170', '497161350934560778');
|
||||
('1162625810109317170', '497161350934560778'),
|
||||
('1158842413025071135', '176333891320283136');
|
||||
|
||||
INSERT INTO event_message (event_id, event_type, event_subtype, message_id, part, reaction_part, source) VALUES
|
||||
('$X16nfVks1wsrhq4E9SSLiqrf2N8KD0erD0scZG7U5xg', 'm.room.message', 'm.text', '1126786462646550579', 0, 0, 1),
|
||||
|
@ -64,7 +66,8 @@ INSERT INTO event_message (event_id, event_type, event_subtype, message_id, part
|
|||
('$7LIdiJCEqjcWUrpzWzS8TELOlFfBEe4ytgS7zn2lbSt', 'm.room.message', 'm.text', '1145688633186193481', 1, 0, 0),
|
||||
('$nUM-ABBF8KdnvrhXwLlYAE9dgDl_tskOvvcNIBrtsVo', 'm.room.message', 'm.text', '1162005526675193909', 0, 0, 0),
|
||||
('$0wEdIP8fhTq-P68xwo_gyUw-Zv0KA2aS2tfhdFSrLZc', 'm.room.message', 'm.text', '1162625810109317170', 1, 1, 1),
|
||||
('$zJFjTvNn1w_YqpR4o4ISKUFisNRgZcu1KSMI_LADPVQ', 'm.room.message', 'm.notice', '1162625810109317170', 1, 0, 1);
|
||||
('$zJFjTvNn1w_YqpR4o4ISKUFisNRgZcu1KSMI_LADPVQ', 'm.room.message', 'm.notice', '1162625810109317170', 1, 0, 1),
|
||||
('$dVCLyj6kxb3DaAWDtjcv2kdSny8JMMHdDhCMz8mDxVo', 'm.room.message', 'm.text', '1158842413025071135', 0, 0, 1);
|
||||
|
||||
INSERT INTO file (discord_url, mxc_url) VALUES
|
||||
('https://cdn.discordapp.com/attachments/497161332244742154/1124628646431297546/image.png', 'mxc://cadence.moe/qXoZktDqNtEGuOCZEADAMvhM'),
|
||||
|
@ -80,7 +83,8 @@ INSERT INTO file (discord_url, mxc_url) VALUES
|
|||
('https://cdn.discordapp.com/emojis/393635038903926784.gif', 'mxc://cadence.moe/WbYqNlACRuicynBfdnPYtmvc'),
|
||||
('https://cdn.discordapp.com/attachments/176333891320283136/1157854643037163610/Screenshot_20231001_034036.jpg', 'mxc://cadence.moe/zAXdQriaJuLZohDDmacwWWDR'),
|
||||
('https://cdn.discordapp.com/emojis/1125827250609201255.png', 'mxc://cadence.moe/pgdGTxAyEltccRgZKxdqzHHP'),
|
||||
('https://cdn.discordapp.com/avatars/320067006521147393/5fc4ad85c1ea876709e9a7d3374a78a1.png?size=1024', 'mxc://cadence.moe/JPzSmALLirnIprlSMKohSSoX');
|
||||
('https://cdn.discordapp.com/avatars/320067006521147393/5fc4ad85c1ea876709e9a7d3374a78a1.png?size=1024', 'mxc://cadence.moe/JPzSmALLirnIprlSMKohSSoX'),
|
||||
('https://cdn.discordapp.com/emojis/288858540888686602.png', 'mxc://cadence.moe/mwZaCtRGAQQyOItagDeCocEO');
|
||||
|
||||
INSERT INTO emoji (emoji_id, name, animated, mxc_url) VALUES
|
||||
('230201364309868544', 'hippo', 0, 'mxc://cadence.moe/qWmbXeRspZRLPcjseyLmeyXC'),
|
||||
|
@ -88,7 +92,8 @@ INSERT INTO emoji (emoji_id, name, animated, mxc_url) VALUES
|
|||
('362741439211503616', 'bn_re', 0, 'mxc://cadence.moe/OIpqpfxTnHKokcsYqDusxkBT'),
|
||||
('551636841284108289', 'ae_botrac4r', 0, 'mxc://cadence.moe/skqfuItqxNmBYekzmVKyoLzs'),
|
||||
('975572106295259148', 'brillillillilliant_move', 0, 'mxc://cadence.moe/scfRIDOGKWFDEBjVXocWYQHik'),
|
||||
('606664341298872324', 'online', 0, 'mxc://cadence.moe/LCEqjStXCxvRQccEkuslXEyZ');
|
||||
('606664341298872324', 'online', 0, 'mxc://cadence.moe/LCEqjStXCxvRQccEkuslXEyZ'),
|
||||
('288858540888686602', 'upstinky', 0, 'mxc://cadence.moe/mwZaCtRGAQQyOItagDeCocEO');
|
||||
|
||||
INSERT INTO member_cache (room_id, mxid, displayname, avatar_url) VALUES
|
||||
('!kLRqKKUQXcibIMtOpl:cadence.moe', '@cadence:cadence.moe', 'cadence [they]', NULL),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue