discoveryURL method

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

URL to guild's splash. If guild doesn't have splash it returns null.

Implementation

String? discoveryURL({String format = "webp", int size = 128}) {
  if (this.discoveryHash != null) {
    return "https://cdn.${Constants.cdnHost}/discovery-splashes/$id/$discoveryHash.$format?size=$size";
  }

  return null;
}