private void Respond(DiscordRpc.Reply reply) { string userId = RespondID.Text; Log(new string[] { "[Method] Respond", "User ID: " + userId, "Reply: " + reply.ToString() }); DiscordRpc.Respond(userId, reply); }
public void Respond(string userId, DiscordRpc.Reply reply) { try { if (isInitialized) { DiscordRpc.Respond(userId, reply); } } catch (Exception ex) { Trace.TraceError("Error responding to discord-RPC request: {0}", ex); } }
public void RequestRespondNo() { Debug.Log("Discord: responding no to Ask to Join request"); DiscordRpc.Respond(joinRequest.userId, DiscordRpc.Reply.No); hasResponded.Invoke(); }
public void RequestRespondYes() { //Debug.Log("Discord: responding yes to Ask to Join request"); DiscordRpc.Respond(joinRequest.userId, DiscordRpc.Reply.Yes); hasResponded.Invoke(); }
public void RequestRespondNo() { Print("Discord: responding no to Ask to Join request"); DiscordRpc.Respond(joinRequest.userId, DiscordRpc.Reply.No); }
public void RequestRespondYes() { Print("Discord: responding yes to Ask to Join request"); DiscordRpc.Respond(joinRequest.userId, DiscordRpc.Reply.Yes); }
public void RequestCallback(DiscordRpc.JoinRequest request) { DiscordRpc.Respond(request.userId, DiscordRpc.Reply.Yes); }