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);
     }
 }
Exemple #3
0
 private void CloseWindow(DiscordRpc.Reply reply)
 {
     DiscordRPController.Main.RespondJoinRequest(Request.userId, reply);
     Destroy(this);
 }
 public static extern void Respond(string userId, DiscordRpc.Reply reply);
Exemple #5
0
 private static extern void ExternRespond(string userId, DiscordRpc.Reply reply);
Exemple #6
0
 public void Respond(string userId, DiscordRpc.Reply reply)
 {
     ExternRespond(userId, reply);
 }
 public static extern void Respond(string DJACMLGPOJB, DiscordRpc.Reply GPDFCKMMIDI);
Exemple #8
0
 public void RespondJoinRequest(string userID, DiscordRpc.Reply reply)
 {
     Log.Info($"[Discord] Respond JoinRequest: {userID} responded with {reply:g}");
     ShowingWindow = false;
     DiscordRpc.Respond(userID, reply);
 }
Exemple #9
0
 private void CloseWindow(DiscordRpc.Reply reply)
 {
     Destroy(this);
 }