This commit is contained in:
Joseph Ferano 2022-04-05 13:06:33 +07:00
parent b2107b6664
commit bdcd717a40

View File

@ -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 {