Unless you were not connected when the message was sent.
> You can also share files through urls...
You could also share them by mailing a usb drive. Both are a lot more annoying than just copy pasting them into a chat.
Also, people need to be a little more precise regarding sharing files. OP just said "share file" they didn't say host files or whatever. Often times the file I want to share isn't hosted or can be embedded (in the past I had to pass around multi-GB binary dumps and you can't embed that in slack and I definitely think you can't do that in discord).
Or, you know, just use a product that has all that built-in freeing you to do other things
1) Impractical. You have to upload files to third party services that usually require an account. So you have to leave the chat, upload the file, and then get back to paste the link.
2) Bad integration. Some sites work better on mobile than others. Some barely work on slow internet connections. Some required logins, or show ads. And you have to leave the client just to see a GIF.
2) Clients can auto integrate URLs, like IRCCloud. It works just as well as server side integration.
You can also share files through urls...