icon abstract method

String icon(
  1. Snowflake id,
  2. String iconHash,
  3. {String format = 'webp',
  4. int? size,
  5. bool animated = true}
)

Returns URL tp /icons/[iconHash]. With given format, size and whether or not returns the animated version (if applicable) of this URL with animated.

Implementation

String icon(Snowflake id, String iconHash, {String format = 'webp', int? size, bool animated = true});