https://forum.snapcraft.io/t/discord-ptrace-apparmor-denials/5099/13
If you see Discord generating the logging
: apparmor="DENIED" operation="ptrace" class="ptrace" profile="snap.discord.discord"
Ues following command supresses it. See the first line link.
snap connect discord:system-observe :system-observe
snap connect discord:unity7 :unity7