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
builderTThe
Tto add the attachment to.gcpAttachmentGcpAttachmentUploadInformationThe attachment to add.
isVoiceboolWhether this is a voice message attachment.
originalStreamStreamThe voice message's stream, required if
isVoiceis true.
Returns
- T
The chained
T.
Type Parameters
TThe builder type.