Table of Contents

Method WithFiles

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

WithFiles(Dictionary<string, Stream>, bool)

Sets if the message has files to be sent.

public DiscordMessageBuilder WithFiles(Dictionary<string, Stream> files, bool resetStreamPosition = false)

Parameters

files Dictionary<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

DiscordMessageBuilder

The current builder to be chained.