iconURL method

String? iconURL({
  1. String format = "webp",
  2. int size = 128,
})

The guild's icon, represented as URL. If guild doesn't have icon it returns null.

Implementation

String? iconURL({String format = "webp", int size = 128}) {
  if (this.iconHash != null) {
    return "https://cdn.${Constants.cdnHost}/icons/$id/$iconHash.$format?size=$size";
  }

  return null;
}