Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
How to add a file to a message as an attachment? - Kord
K
Kord
•
17mo ago
•
1 reply
TBaguette
How to add a file to a message as an attachment?
Pretty please
. I
've tried to use something similar to
file.inputStream()
file.inputStream()
but to no avail
, and I can
't find how to do this anywhere
. I have a
File
File
(and its path as a
String
String
) and I wanna attach it in a
createMessage
createMessage
. That
's it
.
Edit
: forgot to mention but I use Kotlin
, not Groovy
Kord
Join
496
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Sending a message with an image attachment
K
Kord / help
3y ago
Adding a file to a message using getResourceAsStream
K
Kord / help
16mo ago
How do I add components to an interaction response?
K
Kord / help
2y ago