will
will
DIAdiscord.js - Imagine an app
Created by will on 7/15/2024 in #djs-questions
Recurring "Cannot send an empty message" error
nope, still haven't heard/figured out anything :/
94 replies
DIAdiscord.js - Imagine an app
Created by will on 7/15/2024 in #djs-questions
Recurring "Cannot send an empty message" error
might not the API as I cannot reproduce it locally, but what it would be I'm not sure
94 replies
DIAdiscord.js - Imagine an app
Created by will on 7/15/2024 in #djs-questions
Recurring "Cannot send an empty message" error
Will do!
94 replies
DIAdiscord.js - Imagine an app
Created by will on 7/15/2024 in #djs-questions
Recurring "Cannot send an empty message" error
Thank you both for your help!! 😅
94 replies
DIAdiscord.js - Imagine an app
Created by will on 7/15/2024 in #djs-questions
Recurring "Cannot send an empty message" error
I guess I will, and pray advaith swings by haha
94 replies
DIAdiscord.js - Imagine an app
Created by will on 7/15/2024 in #djs-questions
Recurring "Cannot send an empty message" error
Even sending one message with the embed and attachment and then another immediately after with the exact same attachment sometimes failed in either one or both cases
94 replies
DIAdiscord.js - Imagine an app
Created by will on 7/15/2024 in #djs-questions
Recurring "Cannot send an empty message" error
I've changed the code to just send the attachment, though that didn't have any effect on if the message sends successfully or not
94 replies
DIAdiscord.js - Imagine an app
Created by will on 7/15/2024 in #djs-questions
Recurring "Cannot send an empty message" error
Yeah, I believe it is totally unrelated to the code, I think it has to be an API issue atp
94 replies
DIAdiscord.js - Imagine an app
Created by will on 7/15/2024 in #djs-questions
Recurring "Cannot send an empty message" error
Though yes, it doesn't send at all in some scenarios
94 replies
DIAdiscord.js - Imagine an app
Created by will on 7/15/2024 in #djs-questions
Recurring "Cannot send an empty message" error
Ah, I see what you mean, though the listener does return if it doesn't detect a content change
94 replies
DIAdiscord.js - Imagine an app
Created by will on 7/15/2024 in #djs-questions
Recurring "Cannot send an empty message" error
Not sure if I understand you correctly, but the embed and attachment are sent in the same message
94 replies
DIAdiscord.js - Imagine an app
Created by will on 7/15/2024 in #djs-questions
Recurring "Cannot send an empty message" error
I do, yes - sorry, should have clarified
94 replies
DIAdiscord.js - Imagine an app
Created by will on 7/15/2024 in #djs-questions
Recurring "Cannot send an empty message" error
Which it why I just have no clue where to go from here!!!
94 replies
DIAdiscord.js - Imagine an app
Created by will on 7/15/2024 in #djs-questions
Recurring "Cannot send an empty message" error
And not all the time! I just edited the message three times, it errored twice and succeeded once
94 replies
DIAdiscord.js - Imagine an app
Created by will on 7/15/2024 in #djs-questions
Recurring "Cannot send an empty message" error
Yep
94 replies
DIAdiscord.js - Imagine an app
Created by will on 7/15/2024 in #djs-questions
Recurring "Cannot send an empty message" error
Here's an example: Embed:
{
title: "Message Edited",
url: undefined,
description: "@will edited a message they sent in <#950146638607958037> at <t:1721088459> at <t:1721088461>. [Jump to message](https://discord.com/channels/829686402332753940/950146638607958037/1262561249376604180)",
fields: [
{
name: "__Before__",
value: "*View in attached file*",
}, {
name: "__After__",
value: "*View in attached file*",
}
],
color: 3447003,
thumbnail: undefined,
footer: {
text: "Eejit's Tools",
icon_url: "https://raw.githubusercontent.com/Eejit43/files/main/eejit's%20tools%20(colored).png",
},
timestamp: "2024-07-16T00:07:41.224Z",
}
{
title: "Message Edited",
url: undefined,
description: "@will edited a message they sent in <#950146638607958037> at <t:1721088459> at <t:1721088461>. [Jump to message](https://discord.com/channels/829686402332753940/950146638607958037/1262561249376604180)",
fields: [
{
name: "__Before__",
value: "*View in attached file*",
}, {
name: "__After__",
value: "*View in attached file*",
}
],
color: 3447003,
thumbnail: undefined,
footer: {
text: "Eejit's Tools",
icon_url: "https://raw.githubusercontent.com/Eejit43/files/main/eejit's%20tools%20(colored).png",
},
timestamp: "2024-07-16T00:07:41.224Z",
}
Attachment:
{
attachment: {
type: "Buffer",
data: [...],
},
name: "1262561249376604180-content-changes.txt",
description: "A file containing the content changes from the message 1262561249376604180 at 1721088461224",
}
{
attachment: {
type: "Buffer",
data: [...],
},
name: "1262561249376604180-content-changes.txt",
description: "A file containing the content changes from the message 1262561249376604180 at 1721088461224",
}
I can send the whole buffer but I doubt that would be helpful
94 replies
DIAdiscord.js - Imagine an app
Created by will on 7/15/2024 in #djs-questions
Recurring "Cannot send an empty message" error
Sorry yes, misspoke, will do!
94 replies
DIAdiscord.js - Imagine an app
Created by will on 7/15/2024 in #djs-questions
Recurring "Cannot send an empty message" error
Probably not, just grasping at straws at this point I think! I'll push a change and try to log some more errors
94 replies
DIAdiscord.js - Imagine an app
Created by will on 7/15/2024 in #djs-questions
Recurring "Cannot send an empty message" error
I can do that, but I'm going to quickly downgrade bun on my machine to check if that could be the cause, though unlikely
94 replies
DIAdiscord.js - Imagine an app
Created by will on 7/15/2024 in #djs-questions
Recurring "Cannot send an empty message" error
I have been for a few weeks, and it is all just random cases of generated text files trying to be sent with embeds. I can try to go back in the log history and check it out
94 replies