diff --git a/Bot/InviteTracker.fs b/Bot/InviteTracker.fs index 13af93f..170e4f4 100644 --- a/Bot/InviteTracker.fs +++ b/Bot/InviteTracker.fs @@ -373,18 +373,23 @@ To confirm your **Whitelist** please submit it below: let btn = DiscordButtonComponent(ButtonStyle.Success, "WalletStatus", "Check Status") :> DiscordComponent builder.AddComponents [| btn |] |> ignore + printfn "1" let! msgs = channel.GetMessagesAsync() |> Async.AwaitTask + printfn "2" let recruitBot = GuildEnvironment.botClientRecruit.Value match msgs |> Seq.tryHead with | Some msg -> if msg.Author.Id = recruitBot.CurrentUser.Id then + printfn "3" do! msg.ModifyAsync(builder) |> Async.AwaitTask |> Async.Ignore + printfn "4" | None -> + printfn "2a" do! recruitBot.SendMessageAsync(channel, builder) |> Async.AwaitTask |> Async.Ignore with e -> - printfn $"Error trying to get channel Whitelist\n\n{e.Message}" + printfn $"Error trying to get channel Recruit thing\n\n{e.Message}" } |> Async.RunSynchronously let handleCreateInvite (ctx : IDiscordContext) =