Aryxst
Aryxst
Explore posts from servers
DIAdiscord.js - Imagine an app
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 an app
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 an app
Created by theopenroad on 2/17/2024 in #djs-questions
Send mp4 file
@Tor
19 replies
DIAdiscord.js - Imagine an app
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 an app
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
DIAdiscord.js - Imagine an app
Created by Aryxst on 2/13/2024 in #djs-questions
Send message to specific channel
i forgor, ty
19 replies
DIAdiscord.js - Imagine an app
Created by Aryxst on 2/13/2024 in #djs-questions
Send message to specific channel
No description
19 replies
DIAdiscord.js - Imagine an app
Created by Aryxst on 2/13/2024 in #djs-questions
Send message to specific channel
how?
19 replies
DIAdiscord.js - Imagine an app
Created by Aryxst on 2/13/2024 in #djs-questions
Send message to specific channel
No description
19 replies
DIAdiscord.js - Imagine an app
Created by Aryxst on 2/13/2024 in #djs-questions
Send message to specific channel
No description
19 replies
DIAdiscord.js - Imagine an app
Created by Aryxst on 2/13/2024 in #djs-questions
Send message to specific channel
a send method doesnt exists on my channel
19 replies
DIAdiscord.js - Imagine an app
Created by Aryxst on 2/13/2024 in #djs-questions
Send message to specific channel
can you show me an example?
19 replies
DIAdiscord.js - Imagine an app
Created by Mozzy on 2/10/2024 in #djs-questions
Issues with discord.js errors in Bun
you could try opening an issue on bun's github
23 replies
DIAdiscord.js - Imagine an app
Created by Mozzy on 2/10/2024 in #djs-questions
Issues with discord.js errors in Bun
thats just how bun handles errors, its not a discordjs issue
23 replies
DIAdiscord.js - Imagine an app
Created by Mozzy on 2/10/2024 in #djs-questions
Issues with discord.js errors in Bun
No description
23 replies
DIAdiscord.js - Imagine an app
Created by Mozzy on 2/10/2024 in #djs-questions
Issues with discord.js errors in Bun
and the error is because you have to provide content to the message, just add content
23 replies
DIAdiscord.js - Imagine an app
Created by Mozzy on 2/10/2024 in #djs-questions
Issues with discord.js errors in Bun
i dont get any errors
23 replies
DIAdiscord.js - Imagine an app
Created by Mozzy on 2/10/2024 in #djs-questions
Issues with discord.js errors in Bun
do like i did
23 replies
DIAdiscord.js - Imagine an app
Created by Mozzy on 2/10/2024 in #djs-questions
Issues with discord.js errors in Bun
No description
23 replies
DIAdiscord.js - Imagine an app
Created by Mozzy on 2/10/2024 in #djs-questions
Issues with discord.js errors in Bun
mine is pretty simple
23 replies