Print debugging :/
This commit is contained in:
parent
c2f0125fb6
commit
123cbce2aa
@ -45,7 +45,6 @@ let createInvite inviter code =
|
|||||||
|> Sql.query "INSERT INTO invite (code, inviter) VALUES (@code, @inviter)"
|
|> Sql.query "INSERT INTO invite (code, inviter) VALUES (@code, @inviter)"
|
||||||
|> Sql.executeNonQueryAsync
|
|> Sql.executeNonQueryAsync
|
||||||
|> Async.AwaitTask
|
|> Async.AwaitTask
|
||||||
|> Async.Ignore
|
|
||||||
|
|
||||||
let addInvitedUser did code count =
|
let addInvitedUser did code count =
|
||||||
try
|
try
|
||||||
@ -104,8 +103,12 @@ let createGuildInvite (ctx : IDiscordContext) =
|
|||||||
// When a player generates an invite code but it hasn't expired, it generates the same code, creating a duplicate entry
|
// When a player generates an invite code but it hasn't expired, it generates the same code, creating a duplicate entry
|
||||||
// so catch the exception thrown because the code column is unique
|
// so catch the exception thrown because the code column is unique
|
||||||
try
|
try
|
||||||
do! createInvite (ctx.GetDiscordMember().Id) invite.Code
|
let! result = createInvite (ctx.GetDiscordMember().Id) invite.Code
|
||||||
with _ -> ()
|
printfn "%A" result
|
||||||
|
return ()
|
||||||
|
with ex ->
|
||||||
|
printfn "%A" ex.Message
|
||||||
|
()
|
||||||
|
|
||||||
let embed =
|
let embed =
|
||||||
DiscordEmbedBuilder()
|
DiscordEmbedBuilder()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user