WIP: Buttons events
This commit is contained in:
		
							parent
							
								
									2565bd853f
								
							
						
					
					
						commit
						bacb5d3923
					
				
							
								
								
									
										10
									
								
								Program.fs
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								Program.fs
									
									
									
									
									
								
							| @ -3,7 +3,7 @@ open System.Threading.Tasks | ||||
| open DSharpPlus | ||||
| open DSharpPlus.Entities | ||||
| open DSharpPlus.SlashCommands | ||||
| open Microsoft.Extensions.Logging | ||||
| open Emzi0767.Utilities | ||||
| 
 | ||||
| type Move = | ||||
|     | Rock | ||||
| @ -201,6 +201,14 @@ config.Intents <- DiscordIntents.All | ||||
| // config.MinimumLogLevel <- LogLevel.Trace | ||||
| 
 | ||||
| let client = new DiscordClient(config) | ||||
| 
 | ||||
| client.add_ComponentInteractionCreated(AsyncEventHandler( | ||||
|    fun client event -> | ||||
|         async { | ||||
|             return () | ||||
|         } |> Async.StartAsTask | ||||
|         :> Task)) | ||||
| 
 | ||||
| let slash = client.UseSlashCommands() | ||||
| slash.RegisterCommands<JoeBot>(); | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user