Example
Discord\Scripts\client\prism\api.py
Response
string
The Discord username if available or successfully retrieved; otherwise an empty string.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Return the Discord username for the current user. If the username and user_id are missing, this prompts the user to sign in via Discord OAuth and persists the result into the user config.
discord = pcore.getPlugin('Discord')
prism_discord_username = discord.get_prism_discord_username()
print(prism_discord_username)