From bdcd717a403355e8dc47ba4d82ab2f3ae7a50af8 Mon Sep 17 00:00:00 2001 From: Joseph Ferano Date: Tue, 5 Apr 2022 13:06:33 +0700 Subject: [PATCH] Ugh --- Bot/InviteTracker.fs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Bot/InviteTracker.fs b/Bot/InviteTracker.fs index d34d64a..a821fe9 100644 --- a/Bot/InviteTracker.fs +++ b/Bot/InviteTracker.fs @@ -244,9 +244,13 @@ let getAttributions userId (ctx : IDiscordContext) = let getInvitedUsersForId (ctx : IDiscordContext) = task { + printfn "1" do! Messaging.defer ctx + printfn "2" let! users = getInvitedUsers (ctx.GetDiscordMember().Id) + printfn "3" let! total = getInvitedUserCount (ctx.GetDiscordMember().Id) + printfn "4" let sb = StringBuilder() let mutable count = 0 for user in users do @@ -262,9 +266,10 @@ let getInvitedUsersForId (ctx : IDiscordContext) = .AsEphemeral(true) .WithContent(str) do! ctx.FollowUp(msg) + printfn "5" let user = ctx.GetDiscordMember() - let channel = ctx.GetChannel() - do! Analytics.recruitedCommand total user.Id user.Username channel + do! Analytics.recruitedCommand total user.Id user.Username (ctx.GetChannel()) + printfn "6" } :> Task let clearInvites (ctx : IDiscordContext) = task {