/// <summary> /// Registers the application executable to a custom URI Scheme. /// <para>This is required for the Join and Spectate features. Discord will run this custom URI Scheme to launch your application when a user presses either of the buttons.</para> /// </summary> /// <param name="steamAppID">Optional Steam ID. If supplied, Discord will launch the game through steam instead of directly calling it.</param> /// <param name="executable">The path to the executable. If null, the path to the current executable will be used instead.</param> /// <returns></returns> public bool RegisterUriScheme(string steamAppID = null, string executable = null) { UriSchemeRegister urischeme = new UriSchemeRegister(_logger, ApplicationID, steamAppID, executable); return(HasRegisteredUriScheme = urischeme.RegisterUriScheme()); }
/// <summary> /// Registers the application executable to a custom URI Scheme. /// <para>This is required for the Join and Spectate features. Discord will run this custom URI Scheme to launch your application when a user presses either of the buttons.</para> /// </summary> /// <param name="steamAppID">Optional Steam ID. If supplied, Discord will launch the game through steam instead of directly calling it.</param> /// <param name="executable">The path to the executable. If null, the path to the current executable will be used instead.</param> /// <returns></returns> public bool RegisterUriScheme(string steamAppID = null, string executable = null) { var urischeme = new UriSchemeRegister(_logger, ClientId, steamAppID, executable); return(HasRegisteredUriScheme = urischeme.RegisterUriScheme()); }