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);
     }
 }
Ejemplo n.º 3
0
 private void CloseWindow(DiscordRpc.Reply reply)
 {
     DiscordRPController.Main.RespondJoinRequest(Request.userId, reply);
     Destroy(this);
 }
Ejemplo n.º 4
0
 public static extern void Respond(string userId, DiscordRpc.Reply reply);
Ejemplo n.º 5
0
 private static extern void ExternRespond(string userId, DiscordRpc.Reply reply);
Ejemplo n.º 6
0
 public void Respond(string userId, DiscordRpc.Reply reply)
 {
     ExternRespond(userId, reply);
 }
 public static extern void Respond(string DJACMLGPOJB, DiscordRpc.Reply GPDFCKMMIDI);
Ejemplo n.º 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);
 }
Ejemplo n.º 9
0
 private void CloseWindow(DiscordRpc.Reply reply)
 {
     Destroy(this);
 }