chrissy
DIAdiscord.js - Imagine an app
•Created by chrissy on 12/18/2023 in #djs-questions
Unable to add attachments in InteractionType.APPLICATION_COMMAND
You too @Kin as unknown; thanks for taking the time to look at my case!
18 replies
DIAdiscord.js - Imagine an app
•Created by chrissy on 12/18/2023 in #djs-questions
Unable to add attachments in InteractionType.APPLICATION_COMMAND
Thanks, that's a really good explanation! I think I only need HTTP interactions since my bot is intended to only respond to specific commands, but I really appreciate the time you took to explain it to me
18 replies
DIAdiscord.js - Imagine an app
•Created by chrissy on 12/18/2023 in #djs-questions
Unable to add attachments in InteractionType.APPLICATION_COMMAND
Could you clarify how that might look as just a video attachment (not embeds)? Would that go in the place where I have files rn
return res.send({
type: InteractionResponseType.CHANNEL_MESSAGE_WITH_SOURCE,
data: {
content:
video for <@${userId}> and ${file} and path ${videoPath},
flags: InteractionResponseFlags.EPHEMERAL,
components: [
{
type: MessageComponentTypes.ACTION_ROW,
components: [
{
type: MessageComponentTypes.BUTTON,
// Append the game ID to use later on
custom_id:
acceptbutton${req.body.id},
label: 'pls accept',
style: ButtonStyleTypes.PRIMARY,
},
],
},
],
files: [file]
},
});
18 replies
DIAdiscord.js - Imagine an app
•Created by chrissy on 12/18/2023 in #djs-questions
Unable to add attachments in InteractionType.APPLICATION_COMMAND
Ty for all the clarifications btw
18 replies
DIAdiscord.js - Imagine an app
•Created by chrissy on 12/18/2023 in #djs-questions
Unable to add attachments in InteractionType.APPLICATION_COMMAND
I'm not really clear on what the differences are? Gateway vs http interactions?
18 replies
DIAdiscord.js - Imagine an app
•Created by chrissy on 12/18/2023 in #djs-questions
Unable to add attachments in InteractionType.APPLICATION_COMMAND
Oh I see, I want to make a bot that eventually calls an endpoint I have (makes a HTTP request), would Djs not be suitable for that?
18 replies
DIAdiscord.js - Imagine an app
•Created by chrissy on 12/18/2023 in #djs-questions
Unable to add attachments in InteractionType.APPLICATION_COMMAND
Thanks for sharing the resource! I was kind of confused looking at this, does this mean I add an attachments key and put the file name there?
18 replies
DIAdiscord.js - Imagine an app
•Created by chrissy on 12/18/2023 in #djs-questions
Unable to add attachments in InteractionType.APPLICATION_COMMAND
Ohh okay got it, so would you rec that I scrap what they did in the tutorial and completely build on top of discord.js instead?
18 replies
DIAdiscord.js - Imagine an app
•Created by chrissy on 12/18/2023 in #djs-questions
Unable to add attachments in InteractionType.APPLICATION_COMMAND
Why wouldn't the discord tutorial use discord.js 🤔
18 replies
DIAdiscord.js - Imagine an app
•Created by chrissy on 12/18/2023 in #djs-questions
Unable to add attachments in InteractionType.APPLICATION_COMMAND
I see, is this generally a less straightforward way of doing it than discord.js?
18 replies
DIAdiscord.js - Imagine an app
•Created by chrissy on 12/18/2023 in #djs-questions
Unable to add attachments in InteractionType.APPLICATION_COMMAND
Oh interesting, I did import { AttachmentBuilder } from 'discord.js' in hopes of being able to use it, but is it incompatible?
18 replies
DIAdiscord.js - Imagine an app
•Created by chrissy on 12/18/2023 in #djs-questions
Unable to add attachments in InteractionType.APPLICATION_COMMAND
- [email protected]
- node -v v18.12.0
18 replies