Try catch
This commit is contained in:
parent
d15e65ab32
commit
70787439f5
@ -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() =
|
||||
|
Loading…
x
Reference in New Issue
Block a user