Enabling developer mode in discord - FederAndInk/Discordium GitHub Wiki

Go to discord settings >> Select advanced >> Enable developer mode

After this you will be able to copy ids of channels and server by right clicking them and selecting "Copy ID" option at the bottom