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
boolWhether to reset all stream positions to 0 after sending.
Returns
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
AddFileOptionsAdditional flags for the handling of the file streams.
Returns
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