avatarUrl abstract method

  1. @override
String avatarUrl(
  1. {String format = 'webp',
  2. int? size,
  3. bool animated = true}
)
override

The user's avatar, represented as URL. In case if user does not have avatar, default discord avatar will be returned; format, size and animated will no longer affectng this URL. If animated is set as true, if available, the url will be a gif, otherwise the format.

Implementation

@override
String avatarUrl({String format = 'webp', int? size, bool animated = true});