iconURL method

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

Returns url to role icon

Implementation

String? iconURL({String format = "webp", int size = 128}) {
  if (this.iconHash == null) {
    return null;
  }

  return this.client.httpEndpoints.getRoleIconUrl(this.id, this.iconHash!, format, size);
}