Go to the discord developers portal and click on New Application. (NOTE: Your developer portal might not look the same as mine but it will have the New Application button)
Now in this CREATE AN APPLICATION window write the name of the game you want to show as playing.
Slide down a little and you will get your Application Id