setAuthor method

EmbedBuilder setAuthor({
  1. required String name,
  2. String? url,
  3. String? iconUrl,
  4. String? proxyIconUrl,
})

Set the author field and return this

final embed = EmbedBuilder()
  .setAuthor(name: 'John Doe');

Implementation

EmbedBuilder setAuthor ({ required String name, String? url, String? iconUrl, String? proxyIconUrl }) {
  author = EmbedAuthor(name: name, url: url, iconUrl: iconUrl, proxyIconUrl: proxyIconUrl);
  return this;
}