Wawajabba
Wawajabba
DIAdiscord.js - Imagine an app
Created by Wawajabba on 1/12/2024 in #djs-questions
Add an image buffer as an attachment to an embed
Anyhow, it works now and I'll just go with a one word filename. Thanks for your help!
12 replies
DIAdiscord.js - Imagine an app
Created by Wawajabba on 1/12/2024 in #djs-questions
Add an image buffer as an attachment to an embed
I guess so? After I removed the spaces the error was gone, but it still wasn't displaying correctly.
12 replies
DIAdiscord.js - Imagine an app
Created by Wawajabba on 1/12/2024 in #djs-questions
Add an image buffer as an attachment to an embed
Just removing the whitespace weirdly enough still had it displayed outside of the embed
12 replies
DIAdiscord.js - Imagine an app
Created by Wawajabba on 1/12/2024 in #djs-questions
Add an image buffer as an attachment to an embed
I got it working! There must've been some other character in the actual filename that Discord or djs didn't like 🤷‍♂️, changing it to test.png worked
12 replies
DIAdiscord.js - Imagine an app
Created by Wawajabba on 1/12/2024 in #djs-questions
Add an image buffer as an attachment to an embed
I had just thought of removing the spaces and that did do the trick... sadly now it still displays outside of the embed 😅
12 replies
DIAdiscord.js - Imagine an app
Created by Wawajabba on 1/12/2024 in #djs-questions
Add an image buffer as an attachment to an embed
I haven't worked on this bot for a while, but yes I'll update it soon(ish)
12 replies
DIAdiscord.js - Imagine an app
Created by Wawajabba on 1/12/2024 in #djs-questions
Add an image buffer as an attachment to an embed
ExpectedConstraintError: Invalid URL
at Object.run (...\node_modules\@sapphire\shapeshift\dist\index.js:1562:27)
at StringValidator.run (...\node_modules\@sapphire\shapeshift\dist\index.js:103:27)
at UnionValidator.handle (...\node_modules\@sapphire\shapeshift\dist\index.js:1053:32)
at UnionValidator.parse (...\node_modules\@sapphire\shapeshift\dist\index.js:113:88)
at EmbedBuilder.setImage (...\node_modules\@discordjs\builders\dist\index.js:245:23)
at Object.solveHtmlRequest [as solveHtml] (...\commands\crosswordgod\mainSolver.js:185:24)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
constraint: 's.string.url',
given: 'attachment://SPOILER_Example Name.png',
expected: 'expected to match an URL'
}
]
}
ExpectedConstraintError: Invalid URL
at Object.run (...\node_modules\@sapphire\shapeshift\dist\index.js:1562:27)
at StringValidator.run (...\node_modules\@sapphire\shapeshift\dist\index.js:103:27)
at UnionValidator.handle (...\node_modules\@sapphire\shapeshift\dist\index.js:1053:32)
at UnionValidator.parse (...\node_modules\@sapphire\shapeshift\dist\index.js:113:88)
at EmbedBuilder.setImage (...\node_modules\@discordjs\builders\dist\index.js:245:23)
at Object.solveHtmlRequest [as solveHtml] (...\commands\crosswordgod\mainSolver.js:185:24)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
constraint: 's.string.url',
given: 'attachment://SPOILER_Example Name.png',
expected: 'expected to match an URL'
}
]
}
12 replies
DIAdiscord.js - Imagine an app
Created by Wawajabba on 1/12/2024 in #djs-questions
Add an image buffer as an attachment to an embed
Full error
CombinedError: Received one or more errors
at UnionValidator.handle (...\node_modules\@sapphire\shapeshift\dist\index.js:1058:23)
at UnionValidator.parse (...\node_modules\@sapphire\shapeshift\dist\index.js:113:88)
at EmbedBuilder.setImage (...\node_modules\@discordjs\builders\dist\index.js:245:23)
at Object.solveHtmlRequest [as solveHtml] (...\commands\crosswordgod\mainSolver.js:185:24)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Emitted 'error' event on Client instance at:
at emitUnhandledRejectionOrErr (node:events:394:10)
at process.processTicksAndRejections (node:internal/process/task_queues:84:21) {
errors: [
ValidationError: Expected undefined or null
at NullishValidator.handle (...\node_modules\@sapphire\shapeshift\dist\index.js:718:79)
at NullishValidator.run (...\node_modules\@sapphire\shapeshift\dist\index.js:99:23)
at UnionValidator.handle (...\node_modules\@sapphire\shapeshift\dist\index.js:1053:32)
at UnionValidator.parse (...\node_modules\@sapphire\shapeshift\dist\index.js:113:88)
at EmbedBuilder.setImage (...\node_modules\@discordjs\builders\dist\index.js:245:23)
at Object.solveHtmlRequest [as solveHtml] (...\commands\crosswordgod\mainSolver.js:185:24)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
validator: 's.nullish',
given: 'attachment://SPOILER_Example Name.png'
},
CombinedError: Received one or more errors
at UnionValidator.handle (...\node_modules\@sapphire\shapeshift\dist\index.js:1058:23)
at UnionValidator.parse (...\node_modules\@sapphire\shapeshift\dist\index.js:113:88)
at EmbedBuilder.setImage (...\node_modules\@discordjs\builders\dist\index.js:245:23)
at Object.solveHtmlRequest [as solveHtml] (...\commands\crosswordgod\mainSolver.js:185:24)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Emitted 'error' event on Client instance at:
at emitUnhandledRejectionOrErr (node:events:394:10)
at process.processTicksAndRejections (node:internal/process/task_queues:84:21) {
errors: [
ValidationError: Expected undefined or null
at NullishValidator.handle (...\node_modules\@sapphire\shapeshift\dist\index.js:718:79)
at NullishValidator.run (...\node_modules\@sapphire\shapeshift\dist\index.js:99:23)
at UnionValidator.handle (...\node_modules\@sapphire\shapeshift\dist\index.js:1053:32)
at UnionValidator.parse (...\node_modules\@sapphire\shapeshift\dist\index.js:113:88)
at EmbedBuilder.setImage (...\node_modules\@discordjs\builders\dist\index.js:245:23)
at Object.solveHtmlRequest [as solveHtml] (...\commands\crosswordgod\mainSolver.js:185:24)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
validator: 's.nullish',
given: 'attachment://SPOILER_Example Name.png'
},
12 replies
DIAdiscord.js - Imagine an app
Created by Wawajabba on 6/29/2023 in #djs-questions
Fetch messages older than certain date
Oh, I didn't realise that, thank you! That makes this much easier
4 replies
DIAdiscord.js - Imagine an app
Created by Wawajabba on 6/29/2023 in #djs-questions
Fetch messages older than certain date
To be clear, I'm not requesting code help - I can figure this out myself. I'm simply wondering if there's a more efficient way to do this with discord.js
4 replies
DIAdiscord.js - Imagine an app
Created by Wawajabba on 6/12/2023 in #djs-questions
How will djs handle bot tags, since they're not switching to the new username system?
If my bot is called bot#1234, wouldn't User#username return just "bot"?
12 replies
DIAdiscord.js - Imagine an app
Created by Wawajabba on 6/12/2023 in #djs-questions
How will djs handle bot tags, since they're not switching to the new username system?
Alright, thank you. I guess I'll need to check whether a user is a bot or not before getting their username for now
12 replies
DIAdiscord.js - Imagine an app
Created by Wawajabba on 6/12/2023 in #djs-questions
How will djs handle bot tags, since they're not switching to the new username system?
So .tag will be deprecated before bots switch over?
12 replies
DIAdiscord.js - Imagine an app
Created by Wawajabba on 6/12/2023 in #djs-questions
How will djs handle bot tags, since they're not switching to the new username system?
As far as I'm aware they'll continue to have both a username and discriminator for now
12 replies
DIAdiscord.js - Imagine an app
Created by Wawajabba on 6/12/2023 in #djs-questions
How will djs handle bot tags, since they're not switching to the new username system?
Yes, I read that first. But what about bot users?
12 replies
DIAdiscord.js - Imagine an app
Created by Wawajabba on 6/5/2023 in #djs-questions
Does anyone know this "ENOTFOUND" error?
I plan to write a wrapper process for my bot, I guess then I could catch errors like this
9 replies
DIAdiscord.js - Imagine an app
Created by Wawajabba on 6/5/2023 in #djs-questions
Does anyone know this "ENOTFOUND" error?
16.13 is higher. It looks like a DNS error, I'm not sure if I can do anything about that on my end. But updating Node is probably the best I can do
9 replies
DIAdiscord.js - Imagine an app
Created by Wawajabba on 6/5/2023 in #djs-questions
Does anyone know this "ENOTFOUND" error?
Alright, I was wondering if it might've been an error in my configuration or something, but updating does sound best.
9 replies
DIAdiscord.js - Imagine an app
Created by Wawajabba on 11/4/2022 in #djs-questions
Bot crashed because of message with no 'guild' property
Right on the money, thank you 🙂
10 replies
DIAdiscord.js - Imagine an app
Created by Wawajabba on 11/4/2022 in #djs-questions
Bot crashed because of message with no 'guild' property
I updated a while ago so it's just been luck that prevented it from crashing for this long...
10 replies