addFile

fun MessageCreateBuilder.addFile(path: Path): NamedFile(source)

Adds a file with the given path to the attachments.