getDownloadURI method
Returns the Uri object of the download URL. This is an shorthand method for:
Uri.parse(file.getDownloadUrl())
Pass token
parameter if you want to get the download url for a specific bot.
Implementation
Uri getDownloadURI([String? token]) {
return Uri.parse(getDownloadUrl(token));
}