Table of Contents

Class QuotedPrintableAttachmentProperties

Namespace
NetCord.Rest
Assembly
NetCord.dll

Represents an attachment with quoted-printable encoded contents.

public class QuotedPrintableAttachmentProperties : AttachmentProperties, IHttpSerializable
Inheritance
QuotedPrintableAttachmentProperties
Implements
Inherited Members

Constructors

QuotedPrintableAttachmentProperties(string, Stream)

Represents an attachment with quoted-printable encoded contents.

public QuotedPrintableAttachmentProperties(string fileName, Stream stream)

Parameters

fileName string
Name of the attachment (max 1024 characters for attachments sent by message, 2-30 characters for attachments used for sticker creation).
stream Stream

A stream containing the attachment's contents, encoded in quoted-printable.

Methods

Serialize()

Serializes the object or its part into HttpContent.

public override HttpContent Serialize()

Returns

HttpContent

WithDescription(string?)

Description for the attachment (max 1024 characters for attachments sent by message, max 200 characters for attachments used for sticker creation).

public QuotedPrintableAttachmentProperties WithDescription(string? description)

Parameters

description string

Returns

QuotedPrintableAttachmentProperties

WithFileName(string)

Name of the attachment (max 1024 characters for attachments sent by message, 2-30 characters for attachments used for sticker creation).

public QuotedPrintableAttachmentProperties WithFileName(string fileName)

Parameters

fileName string

Returns

QuotedPrintableAttachmentProperties

WithTitle(string?)

The title of the attachment.

public QuotedPrintableAttachmentProperties WithTitle(string? title)

Parameters

title string

Returns

QuotedPrintableAttachmentProperties