function avatarURL(
  userId,
  discriminator,
  options,
) {
  return options.avatar
    ? formatImageURL(
      endpoints.USER_AVATAR(
        userId,
        typeof options.avatar === "string"
          ? options.avatar
          : iconBigintToHash(options.avatar, options.animated ?? true),
      ),
      options.size || 128,
      options.format,
    )
    : endpoints.USER_DEFAULT_AVATAR(Number(discriminator) % 5);
}
/** The users custom avatar or the default avatar if you don't have a member object. */
The users custom avatar or the default avatar if you don't have a member object.
The users custom avatar or the default avatar if you don ' t have a member object .
function avatarURL(
  userId,
  discriminator,
  options,
) {
  return options.avatar
    ? formatImageURL(
      endpoints.USER_AVATAR(
        userId,
        typeof options.avatar === "string"
          ? options.avatar
          : iconBigintToHash(options.avatar, options.animated ?? true),
      ),
      options.size || 128,
      options.format,
    )
    : endpoints.USER_DEFAULT_AVATAR(Number(discriminator) % 5);
}
function avatarURL ( userId , discriminator , options , ) { return options . avatar ? formatImageURL ( endpoints . USER_AVATAR ( userId , typeof options . avatar === "string" ? options . avatar : iconBigintToHash ( options . avatar , options . animated ?? true ) , ) , options . size || 128 , options . format , ) : endpoints . USER_DEFAULT_AVATAR ( Number ( discriminator ) % 5 ) ; }
The users custom avatar or the default avatar if you don't have a member object.
The users custom avatar or the default avatar if you don ' t have a member object .