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
fileName
stringName of the file to attach.
stream
StreamStream containing said file's contents.
resetStream
boolWhether 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
stream
FileStreamFileStream pointing to the file to attach.
resetStream
boolWhether 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
fileName
stringName of the file to attach.
stream
StreamStream containing said file's contents.
fileOptions
AddFileOptionsAdditional 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
stream
FileStreamFileStream pointing to the file to attach.
fileOptions
AddFileOptionsAdditional flags for the handling of the file stream.