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
builderTThe
Tto add the attachment to.filenamestringThe original filename of the attachment.
uploadedFilenamestringThe filename assigned after upload to GCP.
durationSecondsfloatThe duration of the voice message in seconds.
waveformbyte[]A byte-array representing the waveform data for the voice message.
descriptionstringAn optional description for the attachment.
Returns
- T
The chained
T.
Type Parameters
TThe builder type.