How to copy IDs on Discord for Windows/MacOS/Linux.

Developer Mode

Before you can copy an ID, you must turn on Developer Mode in your Discord settings.
First, click the gear icon to the right of your profile in the bottom left corner of the Discord window.
Then, navigate to the Advanced tab and turn on the switch next to Developer Mode.

Copying an ID

Now that you've turned on Developer Mode, you can copy the ID of a:
  • Message
  • Channel
  • Category
  • Server
  • User
  • Role
by right-clicking on it and selecting the Copy ID option from the menu.
Right-clicking a role tag in a message will bring up the menu for the message, not the role. To copy the ID of a role, click the name or profile picture of a user with the role and right-click the role in their profile. Alternatively, navigate to the Roles tab in the server settings and right-click the role (Manage Roles permission is required for this method).