I don't think Discord is a restricted app since you can still hear videos from it. I think Sndcpy can't listen to the phone's audio when there is voice communication currently playing (When this icon appears, on Redmi note 7 at least). Please correct me if I'm wrong.
Is it possible?