private void OnJoinRequested(object sender, JoinRequestMessage args) { Debugger.Discord( GStrings.GetLocalizationByXPath("/Console/String[@ID='MESSAGE_DISCORD_JOIN_REQUEST']") .Replace("{Username}", args.User.ToString()) ); Application.Current.Dispatcher.InvokeAsync(() => { DiscordNotify discordNotify = new DiscordNotify(args); discordNotify.OnRequestAccepted += (src, args) => { client.Respond(args, true); }; discordNotify.OnRequestRejected += (src, args) => { client.Respond(args, false); }; discordNotify.Show(); }); }
public static bool CouldSetupDiscordDetails(string[] args) { return(DiscordNotify.SetupDiscordDetails(args) != false); }