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 {