Table of Contents

Class GoogleCloudPlatformAttachmentProperties

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

Constructors

GoogleCloudPlatformAttachmentProperties(string, string)

public GoogleCloudPlatformAttachmentProperties(string fileName, string uploadedFileName)

Parameters

fileName string

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

uploadedFileName string

Name of the upload.

Properties

SupportsHttpSerialization

public override bool SupportsHttpSerialization { get; }

Property Value

bool

UploadedFileName

Name of the upload.

public string UploadedFileName { get; set; }

Property Value

string

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 GoogleCloudPlatformAttachmentProperties WithDescription(string? description)

Parameters

description string

Returns

GoogleCloudPlatformAttachmentProperties

WithFileName(string)

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

public GoogleCloudPlatformAttachmentProperties WithFileName(string fileName)

Parameters

fileName string

Returns

GoogleCloudPlatformAttachmentProperties

WithTitle(string?)

Title of the attachment.

public GoogleCloudPlatformAttachmentProperties WithTitle(string? title)

Parameters

title string

Returns

GoogleCloudPlatformAttachmentProperties

WithUploadedFileName(string)

Name of the upload.

public GoogleCloudPlatformAttachmentProperties WithUploadedFileName(string uploadedFileName)

Parameters

uploadedFileName string

Returns

GoogleCloudPlatformAttachmentProperties