:(
This commit is contained in:
		
							parent
							
								
									d2d18114ef
								
							
						
					
					
						commit
						3c242cbb51
					
				| @ -373,18 +373,23 @@ To confirm your **Whitelist** please submit it below: | |||||||
|             let btn = DiscordButtonComponent(ButtonStyle.Success, "WalletStatus", "Check Status") :> DiscordComponent |             let btn = DiscordButtonComponent(ButtonStyle.Success, "WalletStatus", "Check Status") :> DiscordComponent | ||||||
|             builder.AddComponents [| btn |] |> ignore |             builder.AddComponents [| btn |] |> ignore | ||||||
| 
 | 
 | ||||||
|  |             printfn "1" | ||||||
|             let! msgs = channel.GetMessagesAsync() |> Async.AwaitTask |             let! msgs = channel.GetMessagesAsync() |> Async.AwaitTask | ||||||
|  |             printfn "2" | ||||||
|             let recruitBot = GuildEnvironment.botClientRecruit.Value |             let recruitBot = GuildEnvironment.botClientRecruit.Value | ||||||
|             match msgs |> Seq.tryHead with |             match msgs |> Seq.tryHead with | ||||||
|             | Some msg -> |             | Some msg -> | ||||||
|                 if msg.Author.Id = recruitBot.CurrentUser.Id then |                 if msg.Author.Id = recruitBot.CurrentUser.Id then | ||||||
|  |                     printfn "3" | ||||||
|                     do! msg.ModifyAsync(builder) |> Async.AwaitTask |> Async.Ignore |                     do! msg.ModifyAsync(builder) |> Async.AwaitTask |> Async.Ignore | ||||||
|  |                     printfn "4" | ||||||
|             | None -> |             | None -> | ||||||
|  |                 printfn "2a" | ||||||
|                 do! recruitBot.SendMessageAsync(channel, builder) |                 do! recruitBot.SendMessageAsync(channel, builder) | ||||||
|                     |> Async.AwaitTask |                     |> Async.AwaitTask | ||||||
|                     |> Async.Ignore |                     |> Async.Ignore | ||||||
|         with e -> |         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 |     } |> Async.RunSynchronously | ||||||
|      |      | ||||||
| let handleCreateInvite (ctx : IDiscordContext) = | let handleCreateInvite (ctx : IDiscordContext) = | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user