Aryxst
Aryxst
Explore posts from servers
DTDrizzle Team
Created by Aryxst on 5/16/2024 in #help
LibsqlError: URL_INVALID: The URL is not in a valid format
why does it work on all other routes
16 replies
DTDrizzle Team
Created by Aryxst on 5/16/2024 in #help
LibsqlError: URL_INVALID: The URL is not in a valid format
undefined
16 replies
DTDrizzle Team
Created by Aryxst on 5/16/2024 in #help
LibsqlError: URL_INVALID: The URL is not in a valid format
nope didnt work
16 replies
DTDrizzle Team
Created by Aryxst on 5/16/2024 in #help
LibsqlError: URL_INVALID: The URL is not in a valid format
I will try it out tomorrow thank you!
16 replies
DTDrizzle Team
Created by Aryxst on 5/16/2024 in #help
LibsqlError: URL_INVALID: The URL is not in a valid format
💀 If thats the issue i will cry
16 replies
DTDrizzle Team
Created by Aryxst on 5/16/2024 in #help
LibsqlError: URL_INVALID: The URL is not in a valid format
16 replies
DTDrizzle Team
Created by Aryxst on 5/16/2024 in #help
LibsqlError: URL_INVALID: The URL is not in a valid format
16 replies
DTDrizzle Team
Created by Aryxst on 5/16/2024 in #help
LibsqlError: URL_INVALID: The URL is not in a valid format
Should i provide the repo?
16 replies
DTDrizzle Team
Created by Aryxst on 5/16/2024 in #help
LibsqlError: URL_INVALID: The URL is not in a valid format
This error is nonsense, why should it be thrown only on that route?
16 replies
DTDrizzle Team
Created by Aryxst on 5/16/2024 in #help
LibsqlError: URL_INVALID: The URL is not in a valid format
and yet only this one errors
16 replies
DTDrizzle Team
Created by Aryxst on 5/16/2024 in #help
LibsqlError: URL_INVALID: The URL is not in a valid format
because i import the db lib file in the same way in all routes
16 replies
DTDrizzle Team
Created by Aryxst on 5/16/2024 in #help
LibsqlError: URL_INVALID: The URL is not in a valid format
since it only happens on this route, I really cant debug it
16 replies
SSolidJS
Created by sh1man on 3/26/2024 in #support
How to css preloading
What does that even mean
2 replies
SSolidJS
Created by Aryxst on 3/13/2024 in #support
How do i make a list properly reactive to state changes?
I removed types in the first code cuz i couldn't paste for the limit
3 replies
SSolidJS
Created by Aryxst on 3/13/2024 in #support
How do i make a list properly reactive to state changes?
The rendering:
<For
each={data()?.Data.Items.filter(item => {
const conditions: boolean[] = [];
for (const [key, value] of Object.entries(activeFilters())) {
reRenders++;
console.log(key, value);
if (typeof value == 'boolean') {
conditions.push(checkerFunctions[key](item));
} else if (typeof value == 'object') {
conditions.push(filterFunctions[key](item));
}
}
return conditions.every(Boolean);
})}
>
//...
<For
each={data()?.Data.Items.filter(item => {
const conditions: boolean[] = [];
for (const [key, value] of Object.entries(activeFilters())) {
reRenders++;
console.log(key, value);
if (typeof value == 'boolean') {
conditions.push(checkerFunctions[key](item));
} else if (typeof value == 'object') {
conditions.push(filterFunctions[key](item));
}
}
return conditions.every(Boolean);
})}
>
//...
3 replies
DIAdiscord.js - Imagine a bot
Created by brncray on 2/13/2024 in #djs-questions
How to make an autocomplete list from mongodb entries
Unless there is a special function in djs that I'm not aware of
7 replies
DIAdiscord.js - Imagine a bot
Created by brncray on 2/13/2024 in #djs-questions
How to make an autocomplete list from mongodb entries
This will work. About the slash command the database items that will be inserted in the autocomplete will be only the ones available at bot's startup. So they wouldn't be updated automatically
7 replies
DIAdiscord.js - Imagine a bot
Created by theopenroad on 2/17/2024 in #djs-questions
Send mp4 file
@Tor
19 replies
DIAdiscord.js - Imagine a bot
Created by theopenroad on 2/17/2024 in #djs-questions
Send mp4 file
Sorry if i didnt answer previously, here's a snippet that does the job:
import { AttachmentBuilder } from "discord.js"
import fs from "fs"

// ... other code

const myvideo = fs.readFileSync('/path/to/my/video.mp4');
message.channel.send({ content: "Here's the video:", files: [new AttachmentBuilder(myvideo, { name: 'video.mp4' })] });

// ...
import { AttachmentBuilder } from "discord.js"
import fs from "fs"

// ... other code

const myvideo = fs.readFileSync('/path/to/my/video.mp4');
message.channel.send({ content: "Here's the video:", files: [new AttachmentBuilder(myvideo, { name: 'video.mp4' })] });

// ...
19 replies
DIAdiscord.js - Imagine a bot
Created by theopenroad on 2/17/2024 in #djs-questions
Send mp4 file
You want to read the file with fs and get the buffer from it
19 replies