Method AddFile
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
AddFile(string, Stream, bool, string)
Adds a file to the followup message.
public DiscordFollowupMessageBuilder AddFile(string filename, Stream data, bool resetStreamPosition = false, string description = null)
Parameters
filename
stringName of the file.
data
StreamFile data.
resetStreamPosition
boolTells the API Client to reset the stream position to what it was after the file is sent.
description
stringDescription of the file.
Returns
- DiscordFollowupMessageBuilder
The builder to chain calls with.
AddFile(FileStream, bool, string)
Sets if the message has files to be sent.
public DiscordFollowupMessageBuilder AddFile(FileStream stream, bool resetStreamPosition = false, string description = null)
Parameters
stream
FileStreamThe Stream to the file.
resetStreamPosition
boolTells the API Client to reset the stream position to what it was after the file is sent.
description
stringDescription of the file.
Returns
- DiscordFollowupMessageBuilder
The builder to chain calls with.