API reference
Method Text
- Namespace
- DisCatSharp.Hosting.AspNetCore.Ingress
- Assembly
- DisCatSharp.Hosting.AspNetCore.dll
Text(int, string, string)
Creates a text response.
public static DiscordIngressResponse Text(int statusCode, string content, string contentType = "text/plain; charset=utf-8")
Parameters
statusCodeintThe HTTP status code to return.
contentstringThe response text.
contentTypestringThe content type to emit.
Returns
- DiscordIngressResponse
A text response.