To inspect elements on Discord, you can simply hit the respective shortcut key i.e., Ctrl + Shift + I and then hover the mouse over an element or select content to understand the code behind it. In case you use Discord's web version, you can open the Discord app in Chrome and go to the three-dot menu button. Then, click on the More Tools > Developers tools option to open the Inspect window. If you are on Mac, you can press the Command + Option + I hotkey to inspect elements on Discord.