Example #1
0
 public void RequestCallback(ref DiscordRpc.DiscordUser request)
 {
     if (!ShowingWindow)
     {
         Log.Info($"[Discord] JoinRequest: Name:{request.username}#{request.discriminator} UserID:{request.userId}");
         DiscordJoinRequestGui acceptRequest = gameObject.AddComponent <DiscordJoinRequestGui>();
         acceptRequest.Request = request;
         ShowingWindow         = true;
     }
     else
     {
         Log.Debug("[Discord] Request window is already active.");
     }
 }
Example #2
0
 public void RequestCallback(ref DiscordRpc.DiscordUser request)
 {
     if (!ShowingWindow)
     {
         Log.Info(string.Format("Discord: join request {0}#{1}: {2}", request.username, request.discriminator, request.userId));
         DiscordJoinRequestGui acceptRequest = gameObject.AddComponent <DiscordJoinRequestGui>();
         acceptRequest.Request = request;
         lastJoinRequestUserID = request.userId;
         ShowingWindow         = true;
     }
     else
     {
         Log.Info("Discord: Request window is allready active.");
     }
 }
Example #3
0
 public void ReadyCallback(ref DiscordRpc.DiscordUser connectedUser) => Log.Info("[Discord] Ready");
Example #4
0
 public void ReadyCallback(ref DiscordRpc.DiscordUser connectedUser)
 {
     Log.Info("Discord: ready");
 }