catch up on missed d->m messages when logging in

This commit is contained in:
Cadence Ember 2023-08-19 22:54:23 +12:00
parent 0f20dcab6d
commit 3436759504
16 changed files with 268 additions and 16 deletions

View file

@ -864,7 +864,7 @@ module.exports = {
components: [],
channel_id: "910283343378120754",
author: {
username: "kumaccino",
username: "kumaccino",
public_flags: 128,
id: "113340068197859328",
global_name: "kumaccino",
@ -876,6 +876,72 @@ module.exports = {
guild_id: "112760669178241024"
}
},
message_with_embeds: {
nothing_but_a_field: {
guild_id: "497159726455455754",
mentions: [],
id: "1141934888862351440",
type: 20,
content: "",
channel_id: "497161350934560778",
author: {
id: "1109360903096369153",
username: "Amanda 🎵",
avatar: "d56cd1b26e043ae512edae2214962faa",
discriminator: "2192",
public_flags: 524288,
flags: 524288,
bot: true,
banner: null,
accent_color: null,
global_name: null,
avatar_decoration_data: null,
banner_color: null
},
attachments: [],
embeds: [
{
type: "rich",
color: 3092790,
fields: [
{
name: "Amanda 🎵#2192 <:online:606664341298872324>\nwillow tree, branch 0",
value: "** Uptime:**\n3m 55s\n** Memory:**\n64.45MB",
inline: false
}
]
}
],
mention_roles: [],
pinned: false,
mention_everyone: false,
tts: false,
timestamp: "2023-08-18T03:21:33.629000+00:00",
edited_timestamp: null,
flags: 0,
components: [],
application_id: "1109360903096369153",
interaction: {
id: "1141934887608254475",
type: 2,
name: "stats",
user: {
id: "320067006521147393",
username: "papiophidian",
avatar: "47a19b0445069b826e136da4df4259bb",
discriminator: "0",
public_flags: 4194880,
flags: 4194880,
banner: null,
accent_color: null,
global_name: "PapiOphidian",
avatar_decoration_data: null,
banner_color: null
}
},
webhook_id: "1109360903096369153"
}
},
message_update: {
edit_by_webhook: {
application_id: "684280192553844747",
@ -1277,5 +1343,38 @@ module.exports = {
],
guild_id: "112760669178241024"
}
},
special_message: {
thread_name_change: {
id: "1142391602799710298",
type: 4,
content: "worming",
channel_id: "1142271000067706880",
author: {
id: "772659086046658620",
username: "cadence.worm",
avatar: "4b5c4b28051144e4c111f0113a0f1cf1",
discriminator: "0",
public_flags: 0,
flags: 0,
banner: null,
accent_color: null,
global_name: "cadence",
avatar_decoration_data: null,
banner_color: null
},
attachments: [],
embeds: [],
mentions: [],
mention_roles: [],
pinned: false,
mention_everyone: false,
tts: false,
timestamp: "2023-08-19T09:36:22.717000+00:00",
edited_timestamp: null,
flags: 0,
components: [],
position: 12
}
}
}

View file

@ -21,6 +21,7 @@ require("../matrix/kstate.test")
require("../matrix/api.test")
require("../matrix/read-registration.test")
require("../d2m/converters/message-to-event.test")
require("../d2m/converters/message-to-event.embeds.test")
require("../d2m/converters/edit-to-changes.test")
require("../d2m/actions/create-room.test")
require("../d2m/converters/user-to-mxid.test")