Method UploadFileAsync
- Namespace
- DisCatSharp.Experimental.Entities
- Assembly
- DisCatSharp.Experimental.dll
UploadFileAsync(DiscordChannel, string, Stream, string?)
Uploads a file to the channel for later use in a DiscordMessageBuilder.
public static Task<GcpAttachmentUploadInformation> UploadFileAsync(this DiscordChannel channel, string name, Stream stream, string? description = null)
Parameters
channel
DiscordChannelThe channel to upload the file to.
name
stringThe name of the file to upload.
stream
StreamThe stream of the file to upload.
description
stringThe description of the file to upload.
Returns
- Task<GcpAttachmentUploadInformation>
The upload information.