When editing a template, how can I recover the user's Discord username?
I dumped
Is there a better way to get this directly or do I need to use this snowflake, if it exists, as a variable value in another function?
I'd like to get the user's Discord username to display on their postbit, should they enable this in the settings.
I dumped
{{ dump($xf.visitor.Profile) }} and I can recover the connected_accounts property, however this only contains the user's snowflake value.Is there a better way to get this directly or do I need to use this snowflake, if it exists, as a variable value in another function?
I'd like to get the user's Discord username to display on their postbit, should they enable this in the settings.