Machie 🌳✨
Explore posts from serversDIAdiscord.js - Imagine an app
•Created by Machie 🌳✨ on 3/4/2024 in #djs-questions
Not Specifically DJS but Discord Related
Picked deno tag cuz dinosaur :)
Trying to make a thing in java that I submit to my college's autograder, and have it send info about the grader and files back to a webhook. However, using the stuff in this class, sending the webhooks for OS info and Java info work fine, but sending the files in the project returns an error code 400 for some reason? Here are the two jsons is posts, one of the OS info which works, and one for the file structure, and the class included.
{
"content": null,
"attachments": [],
"embeds": [{
"title": "OS Info",
"description": "Brand: Windows 11\nVersion: 10.0\nArchitecture: amd64",
"color": 10672383,
"timestamp": "2024-03-04T22:46:00.000Z"
}]
}
{
"content": null,
"attachments": [],
"embeds": [{
"title": "Project Files",
"description": "📂 C:\Users\Sam\Documents\Gitkraken\AutoGrabber/\n 📄 .gitignore\n 📄 build.gradle.kts\n 📄 gradlew\n 📄 gradlew.bat\n 📄 README.md\n 📄 settings.gradle.kts\n 📂 src/main/\n 📂 java/me/ricky/grabber/\n 📄 Main.java\n 📂 resources/\n",
"color": 10672383,
"timestamp": "2024-03-04T22:46:00.000Z"
}]
}
2 replies