send a screenshot

I have the screenshot part working, I just need to know how to get the bot to send the screenshot. Here is the code:
20 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Awashcard0
Awashcard0OP2y ago
node: 18.13.0
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Awashcard0
Awashcard0OP2y ago
I only want to send the file it made me put something there
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Awashcard0
Awashcard0OP2y ago
is there a way to just send a file without text?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Awashcard0
Awashcard0OP2y ago
ok so interaction.followUp(files: [{ attachment: "screenshot.png" }] );
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Awashcard0
Awashcard0OP2y ago
i dont understand
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Awashcard0
Awashcard0OP2y ago
what would the line fully look like
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Awashcard0
Awashcard0OP2y ago
interaction.followUp({files: […] )}
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Awashcard0
Awashcard0OP2y ago
ok sry for wasting your time
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Awashcard0
Awashcard0OP2y ago
I still cant get it to work @sir.jo interaction.followUp(files: ["screenshot.png"] )
Squid
Squid2y ago
Objects have the format of { key: value } and the curly brackets are not optional
Awashcard0
Awashcard0OP2y ago
works thank you
Want results from more Discord servers?
Add your server