For doing so follow these steps:
- While being in a channel or personal contact inside your Slack desktop app write /record and hit enter
- Select the appropriate option i.e. audio, video or screen
- A browser page will open for recording the clip
- Once you are done with the recording, it will automatically upload it to Slack