How to send a file/attachment from an Attachment option on SlashCommand?

I've looked up that topic the the guide but can't find anything on how to send an attachment/file that I get from a slash command.
Was this page helpful?