Support Discord @time

This commit is contained in:
Cadence Ember
2026-10-07 22:52:42 +13:00
parent 302427037b
commit c25b5a19c6
12 changed files with 383 additions and 10 deletions
+50
View File
@@ -1732,6 +1732,56 @@ module.exports = {
}
]
},
timestamps: {
type: 0,
content: "<t:1791106413:S>\n" +
"<t:1791106436:f>\n" +
"<t:1791106440:F>\n" +
"<t:1791106448:T>\n" +
"<t:1791019800:R>\n" +
"<t:1798153200:R>",
mentions: [],
mention_roles: [],
attachments: [],
embeds: [],
timestamp: "2026-10-04T09:34:27.909000+00:00",
edited_timestamp: null,
flags: 0,
components: [],
id: "1556238063774990499",
channel_id: "1160894080998461480",
author: {
id: "772659086046658620",
username: "cadence.worm",
avatar: "466df0c98b1af1e1388f595b4c1ad1b9",
discriminator: "0",
public_flags: 0,
flags: 0,
banner: null,
accent_color: null,
global_name: "cadence",
avatar_decoration_data: null,
collectibles: null,
display_name_styles: null,
vad_colors: null,
banner_color: null,
clan: {
identity_guild_id: "532245108070809601",
identity_enabled: true,
tag: "doll",
badge: "dba08126b4e810a0e096cc7cd5bc37f0"
},
primary_guild: {
identity_guild_id: "532245108070809601",
identity_enabled: true,
tag: "doll",
badge: "dba08126b4e810a0e096cc7cd5bc37f0"
}
},
pinned: false,
mention_everyone: false,
tts: false
},
unknown_role: {
id: "1162374402785153106",
type: 0,
+1
View File
@@ -132,6 +132,7 @@ file._actuallyUploadDiscordFileToMxc = function(url, res) { throw new Error(`Not
require("../src/db/orm.test")
require("../src/js/errors.test")
require("../src/web/server.test")
require("../src/discord/time.test")
require("../src/discord/utils.test")
require("../src/matrix/kstate.test")
require("../src/matrix/api.test")