Table of Contents
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

statusCode int

The HTTP status code to return.

content string

The response text.

contentType string

The content type to emit.

Returns

DiscordIngressResponse

A text response.