Class EndpointRouteBuilderExtensions
- Namespace
- NetCord.Hosting.AspNetCore
- Assembly
- NetCord.Hosting.AspNetCore.dll
public static class EndpointRouteBuilderExtensions
- Inheritance
-
EndpointRouteBuilderExtensions
- Inherited Members
Methods
UseHttpInteractions(IEndpointRouteBuilder, string)
Adds a route to the IEndpointRouteBuilder that will handle Discord interactions.
public static IEndpointConventionBuilder UseHttpInteractions(this IEndpointRouteBuilder endpoints, string pattern)
Parameters
endpoints
IEndpointRouteBuilderThe IEndpointRouteBuilder to add the route to.
pattern
stringThe route pattern.
Returns
- IEndpointConventionBuilder
A IEndpointConventionBuilder that can be used to further customize the endpoint.