Table of Contents

Method AddFiles

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

AddFiles(IDictionary<string, Stream>, bool)

Sets if the message has files to be sent.

public T AddFiles(IDictionary<string, Stream> files, bool resetStreamPosition = false)

Parameters

files IDictionary<string, Stream>

The Files that should be sent.

resetStreamPosition bool

Tells the API Client to reset the stream position to what it was after the file is sent.

Returns

T

The current builder to be chained.

AddFiles(IDictionary<string, Stream>, AddFileOptions)

Attaches multiple files to this message.

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

Parameters

files IDictionary<string, Stream>

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

fileOptions AddFileOptions

Additional flags for the handling of the file streams.

Returns

T

The current builder to be chained.

AddFiles(IEnumerable<DiscordMessageFile>)

public T AddFiles(IEnumerable<DiscordMessageFile> files)

Parameters

files IEnumerable<DiscordMessageFile>

Returns

T