Lipton
Lipton
DIAdiscord.js - Imagine an app
Created by Lipton on 2/29/2024 in #djs-questions
how can i send both a message and multiple files at the same time?
the voices
16 replies
DIAdiscord.js - Imagine an app
Created by Lipton on 2/29/2024 in #djs-questions
how can i send both a message and multiple files at the same time?
i just want to add a message to the files that its sending
16 replies
DIAdiscord.js - Imagine an app
Created by Lipton on 2/29/2024 in #djs-questions
how can i send both a message and multiple files at the same time?
it is an array, that is working fine
16 replies
DIAdiscord.js - Imagine an app
Created by Lipton on 2/29/2024 in #djs-questions
how can i send both a message and multiple files at the same time?
i am aware
16 replies
DIAdiscord.js - Imagine an app
Created by Lipton on 2/29/2024 in #djs-questions
how can i send both a message and multiple files at the same time?
thing is im supplying an array with paths, so i dont think i can just add a description to them
16 replies
DIAdiscord.js - Imagine an app
Created by Lipton on 2/28/2024 in #djs-questions
how can i check if my bot has registered its commands in a guild?
thanks!
10 replies
DIAdiscord.js - Imagine an app
Created by Lipton on 2/28/2024 in #djs-questions
how can i check if my bot has registered its commands in a guild?
i completely forgot about that
10 replies
DIAdiscord.js - Imagine an app
Created by Lipton on 2/28/2024 in #djs-questions
how can i check if my bot has registered its commands in a guild?
right
10 replies
DIAdiscord.js - Imagine an app
Created by Lipton on 2/28/2024 in #djs-questions
how can i check if my bot has registered its commands in a guild?
oh
10 replies
DIAdiscord.js - Imagine an app
Created by Lipton on 2/28/2024 in #djs-questions
how can i check if my bot has registered its commands in a guild?
i know i could, but im looking for the optimal solution
10 replies
DIAdiscord.js - Imagine an app
Created by Lipton on 2/28/2024 in #djs-questions
how can i check if my bot has registered its commands in a guild?
should i just refresh commands in every guild on boot?
10 replies
DIAdiscord.js - Imagine an app
Created by Lipton on 2/20/2024 in #djs-questions
multiple image attachments in one message
worked, thanks!
9 replies
DIAdiscord.js - Imagine an app
Created by Lipton on 2/20/2024 in #djs-questions
multiple image attachments in one message
TypeError [ReqResourceType]: The resource must be a string, Buffer or a valid file stream.
9 replies
DIAdiscord.js - Imagine an app
Created by Lipton on 2/20/2024 in #djs-questions
multiple image attachments in one message
const paths = [];
const imageFolder = fs.readdirSync(path.join(__dirname, '../../output'))

for (const file of imageFolder) {
paths.push(path.join(__dirname, `../../output/${file}`))
}
console.log(paths)
const channel = client.channels.cache.get('1208809020685553715');
channel.send({files: [{ attachment: paths }]});
});
const paths = [];
const imageFolder = fs.readdirSync(path.join(__dirname, '../../output'))

for (const file of imageFolder) {
paths.push(path.join(__dirname, `../../output/${file}`))
}
console.log(paths)
const channel = client.channels.cache.get('1208809020685553715');
channel.send({files: [{ attachment: paths }]});
});
9 replies
DIAdiscord.js - Imagine an app
Created by Lipton on 2/20/2024 in #djs-questions
multiple image attachments in one message
it doesnt seem to accept it
9 replies
DIAdiscord.js - Imagine an app
Created by Lipton on 2/20/2024 in #djs-questions
how do i attach image from file path?
path.join(__dirname, '../../output/page_1.png') fixed it
8 replies
DIAdiscord.js - Imagine an app
Created by Lipton on 2/20/2024 in #djs-questions
how do i attach image from file path?
Error: ENOENT: no such file or directory, stat 'C:\Users\Ja\output\page_1.png'] { errno: -4058, code: 'ENOENT', syscall: 'stat', path: 'C:\Users\Ja\output\page_1.png'
8 replies
DIAdiscord.js - Imagine an app
Created by Lipton on 2/20/2024 in #djs-questions
how do i attach image from file path?
yeah, the path was invalid. It doesnt start from project root
8 replies
DIAdiscord.js - Imagine an app
Created by Lipton on 2/20/2024 in #djs-questions
how do i attach image from file path?
better now i guess
8 replies
DIAdiscord.js - Imagine an app
Created by Lipton on 2/20/2024 in #djs-questions
how do i attach image from file path?
yeah, in the title
8 replies