Table of Contents
API reference

Method AddManualGcpAttachment

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

AddManualGcpAttachment<T>(T, string, string, float, byte[], string?)

Adds a manual GCP (Google Cloud Platform) voice message attachment to the T.

public static T AddManualGcpAttachment<T>(this T builder, string filename, string uploadedFilename, float durationSeconds, byte[] waveform, string? description = null) where T : DisCatSharpBuilder

Parameters

builder T

The T to add the attachment to.

filename string

The original filename of the attachment.

uploadedFilename string

The filename assigned after upload to GCP.

durationSeconds float

The duration of the voice message in seconds.

waveform byte[]

A byte-array representing the waveform data for the voice message.

description string

An optional description for the attachment.

Returns

T

The chained T.

Type Parameters

T

The builder type.