Table of Contents

Method AddGcpAttachment

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

AddGcpAttachment(DiscordMessageBuilder, GcpAttachmentUploadInformation, bool, Stream?)

public static DiscordMessageBuilder AddGcpAttachment(this DiscordMessageBuilder builder, GcpAttachmentUploadInformation gcpAttachment, bool isVoice = false, Stream? originalStream = null)

Parameters

builder DiscordMessageBuilder

The DiscordMessageBuilder 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

DiscordMessageBuilder

The chained DiscordMessageBuilder.

AddGcpAttachment(DiscordInteractionResponseBuilder, GcpAttachmentUploadInformation)

public static DiscordInteractionResponseBuilder AddGcpAttachment(this DiscordInteractionResponseBuilder builder, GcpAttachmentUploadInformation gcpAttachment)

Parameters

builder DiscordInteractionResponseBuilder

The DiscordInteractionResponseBuilder to add the attachment to.

gcpAttachment GcpAttachmentUploadInformation

The attachment to add.

Returns

DiscordInteractionResponseBuilder

The chained DiscordInteractionResponseBuilder.

AddGcpAttachment(DiscordWebhookBuilder, GcpAttachmentUploadInformation)

public static DiscordWebhookBuilder AddGcpAttachment(this DiscordWebhookBuilder builder, GcpAttachmentUploadInformation gcpAttachment)

Parameters

builder DiscordWebhookBuilder

The DiscordWebhookBuilder to add the attachment to.

gcpAttachment GcpAttachmentUploadInformation

The attachment to add.

Returns

DiscordWebhookBuilder

The chained DiscordWebhookBuilder.

AddGcpAttachment(DiscordFollowupMessageBuilder, GcpAttachmentUploadInformation)

public static DiscordFollowupMessageBuilder AddGcpAttachment(this DiscordFollowupMessageBuilder builder, GcpAttachmentUploadInformation gcpAttachment)

Parameters

builder DiscordFollowupMessageBuilder

The DiscordFollowupMessageBuilder to add the attachment to.

gcpAttachment GcpAttachmentUploadInformation

The attachment to add.

Returns

DiscordFollowupMessageBuilder

The chained DiscordFollowupMessageBuilder.