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);
     }
 }
Пример #3
0
 public void RequestRespondNo()
 {
     Debug.Log("Discord: responding no to Ask to Join request");
     DiscordRpc.Respond(joinRequest.userId, DiscordRpc.Reply.No);
     hasResponded.Invoke();
 }
Пример #4
0
 public void RequestRespondYes()
 {
     //Debug.Log("Discord: responding yes to Ask to Join request");
     DiscordRpc.Respond(joinRequest.userId, DiscordRpc.Reply.Yes);
     hasResponded.Invoke();
 }
Пример #5
0
 public void RequestRespondNo()
 {
     Print("Discord: responding no to Ask to Join request");
     DiscordRpc.Respond(joinRequest.userId, DiscordRpc.Reply.No);
 }
Пример #6
0
 public void RequestRespondYes()
 {
     Print("Discord: responding yes to Ask to Join request");
     DiscordRpc.Respond(joinRequest.userId, DiscordRpc.Reply.Yes);
 }
Пример #7
0
 public void RequestCallback(DiscordRpc.JoinRequest request)
 {
     DiscordRpc.Respond(request.userId, DiscordRpc.Reply.Yes);
 }