d->m: Fix conversion of PK replies to Discord user
This commit is contained in:
parent
d673296619
commit
13d1f86d31
3 changed files with 78 additions and 5 deletions
41
test/data.js
41
test/data.js
|
@ -1765,7 +1765,7 @@ module.exports = {
|
|||
}
|
||||
},
|
||||
pk_message: {
|
||||
pk_reply: {
|
||||
pk_reply_to_matrix: {
|
||||
id: "1202543812644306965",
|
||||
type: 0,
|
||||
content: "this is a reply",
|
||||
|
@ -1803,6 +1803,45 @@ module.exports = {
|
|||
components: [],
|
||||
application_id: "466378653216014359",
|
||||
webhook_id: "1195662438662680720"
|
||||
},
|
||||
pk_reply_to_discord: {
|
||||
id: "1202543812644306965",
|
||||
type: 0,
|
||||
content: "this is a reply",
|
||||
channel_id: "1160894080998461480",
|
||||
author: {
|
||||
id: "1195662438662680720",
|
||||
username: "special name",
|
||||
avatar: "6b44a106659e78a2550474c61889194d",
|
||||
discriminator: "0000",
|
||||
public_flags: 0,
|
||||
flags: 0,
|
||||
bot: true,
|
||||
global_name: null
|
||||
},
|
||||
attachments: [],
|
||||
embeds: [
|
||||
{
|
||||
type: "rich",
|
||||
description: "**[Reply to:](https://discord.com/channels/112760669178241024/112760669178241024/1141501302736695316)** some text",
|
||||
author: {
|
||||
name: "wing ↩️",
|
||||
icon_url: "https://cdn.discordapp.com/avatars/112890272819507200/47db1be7ab77e1d812a4573177af0692.png",
|
||||
proxy_icon_url: "https://images-ext-1.discordapp.net/external/wWslraV-s-bLDwphL64YxeDm30M7PIhQQy0EQa8jpDc/https/cdn.discordapp.com/avatars/112890272819507200/47db1be7ab77e1d812a4573177af0692.png"
|
||||
}
|
||||
}
|
||||
],
|
||||
mentions: [],
|
||||
mention_roles: [],
|
||||
pinned: false,
|
||||
mention_everyone: false,
|
||||
tts: false,
|
||||
timestamp: "2024-02-01T09:19:47.118000+00:00",
|
||||
edited_timestamp: null,
|
||||
flags: 0,
|
||||
components: [],
|
||||
application_id: "466378653216014359",
|
||||
webhook_id: "1195662438662680720"
|
||||
}
|
||||
},
|
||||
message_with_embeds: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue