Table of Contents

Class QuotedPrintableAttachmentProperties

Namespace
NetCord.Rest
Assembly
NetCord.dll
public class QuotedPrintableAttachmentProperties : AttachmentProperties, IHttpSerializable
Inheritance
QuotedPrintableAttachmentProperties
Implements
Inherited Members

Constructors

QuotedPrintableAttachmentProperties(string, Stream)

public QuotedPrintableAttachmentProperties(string fileName, Stream stream)

Parameters

fileName string

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

stream Stream

Content of the file 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 file (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 file (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?)

Title of the attachment.

public QuotedPrintableAttachmentProperties WithTitle(string? title)

Parameters

title string

Returns

QuotedPrintableAttachmentProperties