Method AddFile
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
AddFile(string, Stream, bool)
Attaches a file to this message.
IDiscordMessageBuilder AddFile(string fileName, Stream stream, bool resetStream = false)
Parameters
fileNamestringName of the file to attach.
streamStreamStream containing said file's contents.
resetStreamboolWhether to reset the stream to position 0 after sending.
Returns
AddFile(FileStream, bool)
Attaches a file to this message.
IDiscordMessageBuilder AddFile(FileStream stream, bool resetStream = false)
Parameters
streamFileStreamFileStream pointing to the file to attach.
resetStreamboolWhether to reset the stream position to 0 after sending.
Returns
AddFile(string, Stream, AddFileOptions)
Attaches a file to this message.
IDiscordMessageBuilder AddFile(string fileName, Stream stream, AddFileOptions fileOptions)
Parameters
fileNamestringName of the file to attach.
streamStreamStream containing said file's contents.
fileOptionsAddFileOptionsAdditional flags for the handling of the file stream.
Returns
AddFile(FileStream, AddFileOptions)
Attaches a file to this message.
IDiscordMessageBuilder AddFile(FileStream stream, AddFileOptions fileOptions)
Parameters
streamFileStreamFileStream pointing to the file to attach.
fileOptionsAddFileOptionsAdditional flags for the handling of the file stream.