addPathAttachment method

void addPathAttachment(
  1. String path,
  2. {String? name,
  3. bool spoiler = false}
)

Add attachment at specified path

Implementation

void addPathAttachment(String path, {String? name, bool spoiler = false}) {
  addAttachment(AttachmentBuilder.path(path, name: name, spoiler: spoiler));
}