I am creating light for desk, this light will be green when my microphone is active on Discord, and red when my microphone is muted. So I want to get my microphone status from discord. But I don't know-how.

1. How to get my microphone status from discord when I am not in a voice chat too?

I know how to get microphone status when I am sitting on voice chat but I want to get this information the whole time.

Thanks.