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
endpointsIEndpointRouteBuilderThe IEndpointRouteBuilder to add the route to.
patternstringThe route pattern.
Returns
- IEndpointConventionBuilder
A IEndpointConventionBuilder that can be used to further customize the endpoint.
UseWebhookEvents(IEndpointRouteBuilder, string)
Adds a route to the IEndpointRouteBuilder that will handle Discord webhook events.
public static IEndpointConventionBuilder UseWebhookEvents(this IEndpointRouteBuilder endpoints, string pattern)
Parameters
endpointsIEndpointRouteBuilderThe IEndpointRouteBuilder to add the route to.
patternstringThe route pattern.
Returns
- IEndpointConventionBuilder
A IEndpointConventionBuilder that can be used to further customize the endpoint.