Table of Contents
API reference

Method Json

Namespace
DisCatSharp.Hosting.AspNetCore.Ingress
Assembly
DisCatSharp.Hosting.AspNetCore.dll

Json(int, string)

Creates a JSON response.

public static DiscordIngressResponse Json(int statusCode, string json)

Parameters

statusCode int

The HTTP status code to return.

json string

The JSON payload.

Returns

DiscordIngressResponse

A JSON response.