Table of Contents

Method AddFiles

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

AddFiles(IDictionary<string, Stream>, bool)

Attaches multiple files to this message.

IDiscordMessageBuilder AddFiles(IDictionary<string, Stream> files, bool resetStreams = false)

Parameters

files IDictionary<string, Stream>

Dictionary of files to add, where string is a file name and System.IO.Stream is a stream containing the file's contents.

resetStreams bool

Whether to reset all stream positions to 0 after sending.

Returns

IDiscordMessageBuilder

AddFiles(IDictionary<string, Stream>, AddFileOptions)

Attaches multiple files to this message.

IDiscordMessageBuilder AddFiles(IDictionary<string, Stream> files, AddFileOptions fileOptions)

Parameters

files IDictionary<string, Stream>

Dictionary of files to add, where string is a file name and System.IO.Stream is a stream containing the file's contents.

fileOptions AddFileOptions

Additional flags for the handling of the file streams.

Returns

IDiscordMessageBuilder

AddFiles(IEnumerable<DiscordMessageFile>)

Attaches previously used files to this file stream.

IDiscordMessageBuilder AddFiles(IEnumerable<DiscordMessageFile> files)

Parameters

files IEnumerable<DiscordMessageFile>

Previously attached files to reattach

Returns

IDiscordMessageBuilder