Table of Contents

Enum AddFileOptions

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

Additional flags for files added to a message builder.

[Flags]
public enum AddFileOptions
Extension Methods

Fields

CloseStream = 2

Closes the stream upon disposal of the message builder.

Streams will not be disposed upon sending. Disposal of the message builder is necessary.

CopyStream = 4

Immediately reads the stream to completion and copies its contents to an in-memory stream.

Note that this incurs an additional memory overhead and may perform synchronous I/O and should only be used if the source stream cannot be kept open any longer.

If specified together with CloseStream, the stream will closed immediately after the copy.

None = 0

No additional behavior. The stream will read to completion and is left at that position after sending.

ResetStream = 1

Resets the stream to its original position after sending.