If you have a gaming mouse there are different kinds of software that you get or download from the internet.  When you open the software, you will see a part where it allows you to set or customize the mouse functions.  You can even set it to be a macro key for Overwolf or Discord.