setThumbnail method

EmbedBuilder setThumbnail({
  1. required String url,
  2. String? proxyUrl,
  3. int? width,
  4. int? height,
})

Set the thumbnail field and return this

final embed = EmbedBuilder()
  .setThumbnail(url: 'https://..../images/my_picture.png');

Implementation

EmbedBuilder setThumbnail ({ required String url, String? proxyUrl, int? width, int? height }) {
  thumbnail = EmbedThumbnail(url: url, proxyUrl: proxyUrl, width: width, height: height);
  return this;
}