Skip to content

Commit 4cdd933

Browse files
authored
Fix HTTP interaction guide UseHttpInteractions reference (#376)
1 parent 8d35d72 commit 4cdd933

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Documentation/guides/basic-concepts/http-interactions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Before you get started, ensure that you've installed the necessary native depend
1414

1515
## Setting Up HTTP Interactions in C#
1616

17-
To handle HTTP interactions from Discord in your bot, you need to use @NetCord.Hosting.Rest.RestClientServiceCollectionExtensions.AddDiscordRest* to add the @NetCord.Rest.RestClient and then call @NetCord.Hosting.AspNetCore.EndpointRouteBuilderExtensions.UseHttpInteractions* to map the HTTP interactions route. You can also use @NetCord.Hosting.Services.ApplicationCommands.ApplicationCommandServiceServiceCollectionExtensions.AddHttpApplicationCommands* to add the application command service with preconfigured HTTP contexts to your host builder.
17+
To handle HTTP interactions from Discord in your bot, you need to use @NetCord.Hosting.Rest.RestClientServiceCollectionExtensions.AddDiscordRest* to add the @NetCord.Rest.RestClient and then call @NetCord.Hosting.AspNetCore.HttpEventEndpointRouteBuilderExtensions.UseHttpInteractions* to map the HTTP interactions route. You can also use @NetCord.Hosting.Services.ApplicationCommands.ApplicationCommandServiceServiceCollectionExtensions.AddHttpApplicationCommands* to add the application command service with preconfigured HTTP contexts to your host builder.
1818
[!code-cs[Program.cs](HttpInteractions/Program.cs?highlight=8,16)]
1919

2020
### Receiving HTTP Interactions via HTTP Interaction Handler

0 commit comments

Comments
 (0)