discord picture send #2484
Replies: 2 comments 3 replies
-
The migration guide explains:
|
Beta Was this translation helpful? Give feedback.
-
Hi! Thank you for the information. However, could you help me with something? I've created a Discord bot using the latest version of JDA, and I've also made a server.js file for generating a welcome card image. Now, I'm trying to send that generated image to a specific Discord channel within the GuildMemberJoin method, but I'm facing difficulties. The generated image appears correctly in my browser, but I'm unsure how to send it to the Discord channel because methods like .addFile are not working. If it helps, I can share the code with you. Thank you in advance for your assistance. how can i send this picture to the channel because it work in my browser: example link: this us my server.js file: const express = require("express"); const app = express(); app.get("/generateCard", async (req, res) => {
}); and this is my java code atm:
// here need the code......................
} thanks |
Beta Was this translation helpful? Give feedback.
-
Hello everyone! Can someone help me with how to use the .sendFile and .addFile methods in JDA 5.0.0-beta11? I want to send an image file to a channel, but when I use .addFile and .sendFile, it gives me an underline error saying "cannot find symbol". Has anything changed regarding these methods?
Beta Was this translation helpful? Give feedback.
All reactions