Table of Contents
API reference

Method AddGcpAttachment

Namespace
DisCatSharp.Experimental.Entities
Assembly
DisCatSharp.Experimental.dll

AddGcpAttachment<T>(T, GcpAttachmentUploadInformation, bool, Stream?)

Adds a GcpAttachment to the T.

public static T AddGcpAttachment<T>(this T builder, GcpAttachmentUploadInformation gcpAttachment, bool isVoice = false, Stream? originalStream = null) where T : DisCatSharpBuilder

Parameters

builder T

The T to add the attachment to.

gcpAttachment GcpAttachmentUploadInformation

The attachment to add.

isVoice bool

Whether this is a voice message attachment.

originalStream Stream

The voice message's stream, required if isVoice is true.

Returns

T

The chained T.

Type Parameters

T

The builder type.