API reference
Class DiscordIngressPayload
- Namespace
- DisCatSharp.Hosting.AspNetCore.Ingress
- Assembly
- DisCatSharp.Hosting.AspNetCore.dll
Represents a raw ingress payload that can be reused across transport implementations.
public sealed class DiscordIngressPayload
- Inheritance
-
DiscordIngressPayload
- Inherited Members
Remarks
Initializes a new instance of the DiscordIngressPayload class.
Constructors
- DiscordIngressPayload(ReadOnlyMemory<byte>)
Represents a raw ingress payload that can be reused across transport implementations.
Properties
- Bytes
Gets the raw payload bytes.
- Empty
Gets a reusable empty payload instance.
- IsEmpty
Gets a value indicating whether the payload is empty.
- Length
Gets the payload length in bytes.
Methods
- FromString(string, Encoding?)
Creates a payload from text content.
- GetString(Encoding?)
Decodes the payload into a string.