Ugh
This commit is contained in:
parent
b2107b6664
commit
bdcd717a40
@ -244,9 +244,13 @@ let getAttributions userId (ctx : IDiscordContext) =
|
|||||||
|
|
||||||
let getInvitedUsersForId (ctx : IDiscordContext) =
|
let getInvitedUsersForId (ctx : IDiscordContext) =
|
||||||
task {
|
task {
|
||||||
|
printfn "1"
|
||||||
do! Messaging.defer ctx
|
do! Messaging.defer ctx
|
||||||
|
printfn "2"
|
||||||
let! users = getInvitedUsers (ctx.GetDiscordMember().Id)
|
let! users = getInvitedUsers (ctx.GetDiscordMember().Id)
|
||||||
|
printfn "3"
|
||||||
let! total = getInvitedUserCount (ctx.GetDiscordMember().Id)
|
let! total = getInvitedUserCount (ctx.GetDiscordMember().Id)
|
||||||
|
printfn "4"
|
||||||
let sb = StringBuilder()
|
let sb = StringBuilder()
|
||||||
let mutable count = 0
|
let mutable count = 0
|
||||||
for user in users do
|
for user in users do
|
||||||
@ -262,9 +266,10 @@ let getInvitedUsersForId (ctx : IDiscordContext) =
|
|||||||
.AsEphemeral(true)
|
.AsEphemeral(true)
|
||||||
.WithContent(str)
|
.WithContent(str)
|
||||||
do! ctx.FollowUp(msg)
|
do! ctx.FollowUp(msg)
|
||||||
|
printfn "5"
|
||||||
let user = ctx.GetDiscordMember()
|
let user = ctx.GetDiscordMember()
|
||||||
let channel = ctx.GetChannel()
|
do! Analytics.recruitedCommand total user.Id user.Username (ctx.GetChannel())
|
||||||
do! Analytics.recruitedCommand total user.Id user.Username channel
|
printfn "6"
|
||||||
} :> Task
|
} :> Task
|
||||||
|
|
||||||
let clearInvites (ctx : IDiscordContext) = task {
|
let clearInvites (ctx : IDiscordContext) = task {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user