Try catch

This commit is contained in:
Joseph Ferano 2022-04-23 15:40:21 +07:00
parent d15e65ab32
commit 70787439f5

View File

@ -103,11 +103,14 @@ let getUserInvitesTable (ctx : IDiscordContext) =
task {
do! Messaging.defer ctx
printfn $"Trying this out"
try
let! invites = getUserInvites [ "90588624566886400" ; "822834227467780136" ]
printfn $"Total Invites? \n{invites}"
let builder = DiscordFollowupMessageBuilder()
builder.Content <- $"%A{invites}"
do! ctx.FollowUp(builder)
with ex ->
printfn $"exception {ex.Message}"
} :> Task
type AdminBot() =