internal static void SetActivity(DiscordSdk.Activity activity) { if (IsCurrentlyDisposing) { return; } var guid = Guid.NewGuid().ToString(); var activityManager = GetDiscord().GetActivityManager(); lock (Lock) { activityManager.UpdateActivity(activity, result => { Console.WriteLine(guid + " - Set activity result: " + result); }); } RecentlyGotUpdate = true; LastUpdated = DateTimeOffset.UtcNow; Console.WriteLine("LastUpdated: " + LastUpdated.ToString("T")); }
private static void HandleActivityInvite(ActivityActionType type, ref User user, ref DiscordSdk.Activity activity) { Console.WriteLine("Activity Invite"); }