mirror of
https://github.com/vrcx-team/VRCX.git
synced 2026-04-06 00:32:02 +02:00
Discord profile badge
This commit is contained in:
@@ -46,6 +46,18 @@ namespace VRCX
|
||||
}
|
||||
}
|
||||
|
||||
public void OpenDiscordProfile(string discordId)
|
||||
{
|
||||
if (!long.TryParse(discordId, out _))
|
||||
throw new Exception("Invalid user ID");
|
||||
|
||||
var uri = $"discord://-/users/{discordId}";
|
||||
Process.Start(new ProcessStartInfo(uri)
|
||||
{
|
||||
UseShellExecute = true
|
||||
});
|
||||
}
|
||||
|
||||
public string GetLaunchCommand()
|
||||
{
|
||||
var command = StartupArgs.LaunchArguments.LaunchCommand;
|
||||
|
||||
Reference in New Issue
Block a user