discord.com
Discord login
Input
None
Output
url requiredstate requiredWhich surface the browser landed on. "app" is the signed-in web app. "login" is Discord's login page. "anonymous" is the marketing homepage still offering guest onboarding, which a signed-out browser reaches without ever being redirected to /login. Both of the latter two mean loggedIn is false.
loggedIn requiredTrue only when the browser landed on the signed-in web app. A signed-out browser is a normal result reported as false, not an error.
username optionalNull unless loggedIn is true.
displayName optionalNull unless loggedIn is true.
